]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/acq/invoice_payment_method.tt2
Fixup ctx.page_title and script type declarations
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / acq / invoice_payment_method.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Invoice Payment Methods' %]
3 <script type="text/javascript">
4     dojo.require("openils.widget.AutoGrid");
5     dojo.require("dijit.form.FilteringSelect");
6     openils.Util.addOnLoad(
7         function() { acqipmGrid.loadAll({"order_by": {"acqipm": "name"}}); }
8     );
9 </script>
10 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class="oils-header-panel">
11     <div>Invoice Payment Methods</div>
12     <div>
13         <button dojoType="dijit.form.Button" onClick="acqipmGrid.showCreateDialog();">New Invoice Payment Method</button>
14         <button dojoType="dijit.form.Button" onClick="acqipmGrid.deleteSelected();">Delete Selected</button>
15     </div>
16 </div>
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
18     <table  jsId="acqipmGrid"
19             dojoType="openils.widget.AutoGrid"
20             fieldOrder="['code', 'name']"
21             defaultCellWidth="'auto'"
22             query="{id: '*'}"
23             fmClass="acqipm"
24             editOnEnter="true">
25     </table>
26 </div>
27 [% END %]