]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
Stamping upgrade script for LP#837566
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / acq / exchange_rate.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'Exchange Rates' %]
3 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
4     <div>Exchange Rates</div>
5     <div>
6         <button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New Exchange Rate</button>
7         <button dojoType='dijit.form.Button' onClick='erGrid.deleteSelected()'>Delete Selected</button>
8     </div>
9 </div>
10 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
11     <table  jsId="erGrid"
12             autoHeight='true'
13             dojoType="openils.widget.AutoGrid"
14             fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
15             defaultCellWidth='12'
16             query="{id: '*'}"
17             fmClass='acqexr'
18             editOnEnter='true'>
19     </table>
20 </div>
21
22 <script type="text/javascript">
23     dojo.require('openils.widget.AutoGrid');
24     dojo.require('dijit.form.FilteringSelect');
25     openils.Util.addOnLoad(
26         function() {
27             erGrid.loadAll({order_by:{acqpro : 'name'}});
28         }
29     );
30 </script>
31 [% END %]
32
33