]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/booking/resource_attr_map.tt2
JS reordering to account for readyState event leakage from XHR to the main page
[Evergreen.git] / Open-ILS / web / templates / default / conify / global / booking / resource_attr_map.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Resource Attribute Maps' %]
3 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
4     <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
5         <div>Resource Attribute Maps</div>
6         <div>
7             <button dojoType='dijit.form.Button' onClick='bramGrid.showCreateDialog()'>New Resource Attribute Map</button>
8             <button dojoType='dijit.form.Button' onClick='bramGrid.deleteSelected()'>Delete Selected</button>
9         </div>
10     </div>
11     <table  jsId="bramGrid"
12             dojoType="openils.widget.AutoGrid"
13             fieldOrder="['resource', 'resource_attr', 'value']"
14             query="{id: '*'}"
15             fmClass='bram'
16             showPaginator='true'
17             editOnEnter='true'>
18     </table>
19 </div>
20
21 <script type ="text/javascript">
22     dojo.require('dijit.form.FilteringSelect');
23     dojo.require('openils.widget.AutoGrid');
24
25     openils.Util.addOnLoad(
26         function() { bramGrid.loadAll({order_by:{bram : 'resource_attr'}}); }
27     );
28 </script>
29 [% END %]