1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Resources' %]
3 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class="oils-header-panel">
7 <button dojoType='dijit.form.Button' onClick='brsrcGrid.showCreateDialog()'>New Resource</button>
8 <button dojoType='dijit.form.Button' onClick='brsrcGrid.deleteSelected()'>Delete Selected</button>
11 <table jsId="brsrcGrid"
12 dojoType="openils.widget.AutoGrid"
13 fieldOrder="['owner', 'type', 'barcode',
14 'overbook', 'deposit', 'deposit_amount', 'user_fee']"
22 <script type ="text/javascript">
23 dojo.require('dijit.form.FilteringSelect');
24 dojo.require('openils.widget.AutoGrid');
26 openils.Util.addOnLoad(
28 var search = {"id": {"!=": null}};
29 if (xulG && xulG.resultant_brsrc)
30 search = {id: xulG.resultant_brsrc};
31 brsrcGrid.loadAll({order_by:{brsrc : 'barcode'}}, search);