]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
9a14771c4b799949c63a8c47c0e2fe7cb6469199
[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">
18     <table  jsId="erGrid"
19             autoHeight='true'
20             dojoType="openils.widget.AutoGrid"
21             fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
22             defaultCellWidth='12'
23             query="{id: '*'}"
24             fmClass='acqexr'
25             editOnEnter='true'>
26     </table>
27     <div/>
28 </div>
29 [% END %]
30
31