]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
more movement toward markup-based grids
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / financial / list_currency_types.tt2
1 [% WRAPPER 'default/base.tt2' %]
2 <div id='oils-acq-list-header' class='container'>
3     <div id='oils-acq-list-header-label'>Currency Types</div>
4 </div>
5
6 <!-- load the page-specific JS -->
7 <script src='[% ctx.media_prefix %]/js/ui/default/acq/financial/list_currency_types.js'> </script>
8
9 <div class='oils-acq-actions-div'>
10     <div dojoType="dijit.form.DropDownButton">
11         <!-- TODO: add perm and disable button if necessary XXX -->
12         <span>New Currency Type</span>
13         <div dojoType="dijit.TooltipDialog" execute="createCT(arguments[0]);">
14             <table class='dijitTooltipTable'>
15                 <tr>
16                     <td><label for="label">Label: </label></td>
17                     <td><input dojoType="dijit.form.TextBox" name="label"/></td>
18                 </tr>
19                 <tr>
20                     <td><label for="code">Code: </label></td>
21                     <td><input dojoType="dijit.form.TextBox" name="code"/></td>
22                 </tr>
23                 <tr>
24                     <td colspan='2' align='center'>
25                         <button dojoType=dijit.form.Button type="submit">Create</button>
26                     </td>
27                 </tr>
28             </table>
29         </div>
30     </div> 
31
32     <button dojoType="dijit.form.Button" onclick="deleteSelectedCT()">
33         Delete Selected
34     </button>
35 </div>
36
37 <!-- The main grid lives here -->
38 </script> 
39 <div dojoType="dijit.layout.ContentPane" layoutAlign="top"> 
40     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'> 
41         <table jsId="currencyTypeListGrid" dojoType="dojox.grid.DataGrid" query="{code: '*'}" rowSelector='20px'> 
42             <thead> 
43                 <tr> 
44                     <th field="code">Code</th> 
45                     <th field="label" width='auto'>Label</th> 
46                 </tr> 
47             </thead> 
48         </table>     
49     </div> 
50 </div> 
51
52 [% END %]