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