3 ctx.page_title = l('Search Filter Group');
4 filter_group_id = ctx.page_args.0;
8 #fge-edit-div {margin-top: 20px;}
9 #fge-edit-div td {padding : 5px;}
12 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14 [% IF filter_group_id %]
16 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
17 <div>[% l('Search Filter Group') %]</div>
19 <button dojoType='dijit.form.Button' onClick='showFgeEditor(null, true)'>[% l('New') %]</button>
20 <button dojoType='dijit.form.Button' onClick='fgeDelete()'>[% l('Delete Selected') %]</button>
24 <a href="[% ctx.base_path %]/conify/global/actor/search_filter_group">↖ [% l('Return to Filter Groups') %]</a>
30 dojoType="openils.widget.FlattenerGrid"
31 columnPersistKey='"conify.actor.search_filter_group_entry"'
36 _mapExtras="{id : {path : 'id'}}"
37 query="{'grp': ['[% filter_group_id %]']}">
40 <th field="query_label" fpath="query.label" ffilter="true" get='getFgeLabel' formatter='formatFgeLabel'>[% l('Label') %]</th>
41 <th field="query_text" fpath="query.query_text" ffilter="true">[% l('Query Text') %]</th>
42 <th field="pos">[% l('Sort Position') %]</th>
43 <!-- mapExtras should cover "id", but it's not working; investigate.. -->
44 <th field="id">[% l('ID') %]</th>
49 <div id='fge-edit-div' class='hidden'>
51 <tr><td>[% l('Label') %]</td><td><div id='fge-edit-label'></div></td></tr>
52 <tr><td>[% l('Query') %]</td><td><div id='fge-edit-query'></div></td></tr>
53 <tr><td>[% l('Position') %]</td><td><div id='fge-edit-pos'></div></td></tr>
55 <td><button dojoType='dijit.form.Button' jsId='fgeSave'>[% l('Save') %]</button></td>
56 <td><button dojoType='dijit.form.Button' jsId='fgeCancel'>[% l('Cancel') %]</button></td>
63 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
64 <div>[% l('Search Filter Group') %]</div>
66 <button dojoType='dijit.form.Button' onClick='fgGrid.showCreateDialog()'>[% l('New') %]</button>
67 <button dojoType='dijit.form.Button' onClick='fgGrid.deleteSelected()'>[% l('Delete Selected') %]</button>
74 dojoType="openils.widget.FlattenerGrid"
75 columnPersistKey='"conify.actor.search_filter_group"'
81 defaultSort="['code']"
82 mapExtras="{owner: {path: 'owner.id', filter: true}}"
86 <th field="code" fpath="code" ffilter="true" get='getFgCode' formatter='formatFgCode'>[% l('Code') %]</th>
87 <th field="owner_sn" fpath="owner.shortname" ffilter="true">[% l('Owner') %]</th>
88 <th field="label" fpath="label" ffilter="true">[% l('Label') %]</th>
89 <th field="create_date" fpath="create_date" ffilter="true">[% l('Create Date') %]</th>
95 <div><i>[% l('To view groups for a different location, use the "Filter" option') %]</i></div>
100 <script type="text/javascript">var filterGroupId = '[% filter_group_id %]'</script>
101 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/actor/search_filter_group.js'> </script>