]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
use new built-in autogrid fetch & load
[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><button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New</button></div>
13 </div>
14 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
15     <table jsId="erGrid" dojoType="openils.widget.AutoGrid" 
16             fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']" defaultCellWidth='12'
17             query="{id: '*'}" rowSelector='20px' fmClass='acqexr' editOnEnter='true'>
18     </table>
19 </div>
20 [% END %]
21
22