</link> is not valid HTML
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / booking / resource.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Resources' %]
3
4 <script src="/opac/common/js/CGI.js" type="text/javascript"></script>
5 <script type ="text/javascript">
6     dojo.require('dijit.form.FilteringSelect');
7     dojo.require('openils.widget.AutoGrid');
8     dojo.require('openils.XUL');
9
10     openils.Util.addOnLoad(
11         function() {
12             var search = undefined; // default to all objs
13             if (xulG && xulG.resultant_brsrc) {
14                 search = {id: xulG.resultant_brsrc};
15             }
16             ustGrid.loadAll({order_by:{brsrc : 'barcode'}}, search);
17         }
18     );
19 </script>
20
21 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
22     <div>Resources</div>
23     <div>
24         <button dojoType='dijit.form.Button' onClick='ustGrid.showCreateDialog()'>New Resource</button>
25         <button dojoType='dijit.form.Button' onClick='ustGrid.deleteSelected()'>Delete Selected</button>
26     </div>
27 </div>
28
29 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
30     <table  jsId="ustGrid"
31             autoHeight='true'
32             dojoType="openils.widget.AutoGrid"
33             fieldOrder="['owner', 'type', 'barcode',
34                 'overbook', 'deposit', 'deposit_amount', 'user_fee']"
35             query="{name: '*'}"
36             defaultCellWidth='"auto"'
37             fmClass='brsrc'
38             showPaginator='true'
39             editOnEnter='true'>
40     </table>
41  </div>
42
43 [% END %]