Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def show
- object = model_to_save.find(params[:id])
- object['aqis_class_ids'] = object.aqis_class_ids
- object['aqis_facility_type_ids'] = object.aqis_facility_type_ids
- if restrict_update_and_delete_to_creator_and_admin && !is_current_user_an_admin_or_creator?(object, 'show')
- render :json => {:success => false, :message => "ACCESS DENIED"}
- return false
- end
- render :json => {
- :success => true,
- :data => object
- }
- end
- {
- xtype: 'labeled',
- fieldLabel: 'Classes',
- field_xtype: 'select',
- store: CRS.stores.instances.aqis_classes,
- valueField: 'id',
- displayField: 'name',
- mode: 'local',
- tpl: '<tpl for="."><div class="x-combo-list-item">{long_name}</div></tpl>',
- listWidth: '500',
- triggerAction: 'all',
- msgTarget:'side',
- multiSelect: true,
- hideTrigger: false,
- width: 280,
- name: 'aqis_class_ids'
- },
Add Comment
Please, Sign In to add comment