added delete operation
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / acq / exchange_rate.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script>
3     dojo.require('openils.widget.AutoGrid');
4     openils.Util.addOnLoad(
5         function() {
6             erGrid.loadAll({order_by:{acqpro : 'name'}});
7         }
8     );
9 </script>
10 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
11     <div>Exchange Rates</div>
12     <div>
13         <button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New Exchange Rate</button>
14         <button dojoType='dijit.form.Button' onClick='erGrid.deleteSelected()'>Delete Selected</button>
15     </div>
16 </div>
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
18     <table  jsId="erGrid"
19             dojoType="openils.widget.AutoGrid"
20             fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
21             defaultCellWidth='12'
22             query="{id: '*'}"
23             fmClass='acqexr'
24             editOnEnter='true'>
25     </table>
26 </div>
27 [% END %]
28
29