]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/booking/resource.tt2
Booking: begin forward-porting code from rel_1_6.
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / booking / resource.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Resources' %]
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             var search = {"id": {"!=": null}};
10             if (xulG && xulG.resultant_brsrc)
11                 search = {id: xulG.resultant_brsrc};
12             brsrcGrid.loadAll({order_by:{brsrc : 'barcode'}}, search);
13         }
14     );
15 </script>
16 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
17     <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class="oils-header-panel">
18         <div>Resources</div>
19         <div>
20             <button dojoType='dijit.form.Button' onClick='brsrcGrid.showCreateDialog()'>New Resource</button>
21             <button dojoType='dijit.form.Button' onClick='brsrcGrid.deleteSelected()'>Delete Selected</button>
22         </div>
23     </div>
24     <table  jsId="brsrcGrid"
25             dojoType="openils.widget.AutoGrid"
26             fieldOrder="['owner', 'type', 'barcode',
27                 'overbook', 'deposit', 'deposit_amount', 'user_fee']"
28             query="{id: '*'}"
29             fmClass='brsrc'
30             showPaginator='true'
31             editOnEnter='true'>
32     </table>
33 </div>
34 [% END %]