css fixes remove the need for a padding div after grids to prevent horizontal scroll
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / financial / list_currency_types.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script>
3     dojo.require('dijit.layout.ContentPane');
4     dojo.require('dijit.form.Button');
5     dojo.require('openils.widget.AutoGrid');
6     dojo.require('openils.Util');
7     openils.Util.addOnLoad(
8         function() {
9             ctGrid.loadAll({order_by:{acqct : 'code'}});
10         }
11     );
12 </script>
13
14 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
15     <div>Currency Type</div>
16     <div>
17         <button dojoType='dijit.form.Button' onClick='ctGrid.showCreateDialog()'>New Currency Type</button>
18         <button dojoType='dijit.form.Button' onClick='ctGrid.deleteSelected()'>Delete Selected</button>
19     </div>
20 </div>
21 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
22     <table  jsId="ctGrid"
23             autoHeight='true'
24             dojoType="openils.widget.AutoGrid"
25             fieldOrder="['code', 'label']"
26             defaultCellWidth='25'
27             query="{code: '*'}"
28             fmClass='acqct'
29             editOnEnter='true'>
30     </table>
31 </div>
32 [% END %]
33
34