]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/booking/resource_attr.tt2
Booking: begin forward-porting code from rel_1_6.
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / booking / resource_attr.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Resource Attributes' %]
3 <script type ="text/javascript">
4     dojo.require('dijit.form.FilteringSelect');
5     dojo.require('openils.widget.AutoGrid');
6
7     openils.Util.addOnLoad(
8         function() {
9             braGrid.loadAll({order_by:{bra : 'name'}}, {"id": {"!=": null}});
10         }
11     );
12 </script>
13 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14     <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class="oils-header-panel">
15         <div>Resource Attributes</div>
16         <div>
17             <button dojoType='dijit.form.Button' onClick='braGrid.showCreateDialog()'>New Resource Attribute</button>
18             <button dojoType='dijit.form.Button' onClick='braGrid.deleteSelected()'>Delete Selected</button>
19         </div>
20     </div>
21     <table  jsId="braGrid"
22             dojoType="openils.widget.AutoGrid"
23             fieldOrder="['name', 'owner', 'resource_type', 'required']"
24             query="{id: '*'}"
25             fmClass='bra'
26             showPaginator='true'
27             editOnEnter='true'>
28     </table>
29 </div>
30
31 [% END %]