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');
7 openils.Util.addOnLoad(
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);
16 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class="oils-header-panel">
20 <button dojoType='dijit.form.Button' onClick='brsrcGrid.showCreateDialog()'>New Resource</button>
21 <button dojoType='dijit.form.Button' onClick='brsrcGrid.deleteSelected()'>Delete Selected</button>
24 <table jsId="brsrcGrid"
25 dojoType="openils.widget.AutoGrid"
26 fieldOrder="['owner', 'type', 'barcode',
27 'overbook', 'deposit', 'deposit_amount', 'user_fee']"