]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
added create functionality
[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     var currencyTypeListGridStructure = [{
40         cells : [[
41             {name: 'Code', field:'code'},
42             {name: 'Label', field:'label', width:'auto'}
43         ]]
44     }];
45 </script>
46 <div jsId='currencyTypeListGrid' dojoType="dojox.Grid" structure='currencyTypeListGridStructure'></div>
47 [% END %]