added delete-selected buttons
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / financial / list_currency_types.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script>
3     dojo.require('dijit.layout.ContentPane');
4     dojo.require('dijit.form.Button');
5     dojo.require('openils.widget.AutoGrid');
6     dojo.require('openils.Util');
7     openils.Util.addOnLoad(
8         function() {
9             ctGrid.loadAll({order_by:{ccm : 'name'}});
10         }
11     );
12 </script>
13
14 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
15     <div>Currency Type</div>
16     <div>
17         <button dojoType='dijit.form.Button' onClick='ctGrid.showCreateDialog()'>New Currency Type</button>
18         <button dojoType='dijit.form.Button' onClick='ctGrid.deleteSelected()'>Delete Selected</button>
19     </div>
20 </div>
21 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
22     <table  jsId="ctGrid"
23             dojoType="openils.widget.AutoGrid"
24             fieldOrder="['code', 'label']"
25             defaultCellWidth='25'
26             query="{code: '*'}"
27             fmClass='acqct'
28             editOnEnter='true'>
29     </table>
30 </div>
31 [% END %]
32
33