]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
Merging acq-experiment to trunk, since rel_1_4 has been branched.
[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 <script type="text/javascript">
10     function createCT(fields) {
11         alert('create: ' + fields.code);
12     }
13 </script>
14
15 <div class='oils-acq-actions-div'>
16     <div dojoType="dijit.form.DropDownButton">
17         <span>New Currency Type</span>
18
19         <div dojoType="dijit.TooltipDialog" execute="createCT(arguments[0]);">
20             <script type='dojo/connect' event='onOpen'>
21                 // XXX check perm and disable button if necessary ...
22                 //globalUser.buildPermOrgSelector('ADMIN_CURRENCY_TYPE', currencyTypeOwnerSelect);
23             </script>
24
25             <table class='dijitTooltipTable'>
26                 <tr>
27                     <td><label for="label">Label: </label></td>
28                     <td><input dojoType="dijit.form.TextBox" name="label"></td>
29                 </tr>
30                 <tr>
31                     <td><label for="name">Code: </label></td>
32                     <td><input dojoType="dijit.form.TextBox" name="code"></td>
33                 </tr>
34                 <tr>
35                     <td colspan='2' align='center'>
36                         <button dojoType=dijit.form.Button type="submit">Create</button>
37                     </td>
38                 </tr>
39             </table>
40         </div>
41     </div> 
42
43     <button dojoType="dijit.form.Button" onclick="deleteSelectedCT()">
44         Delete Selected
45     </button>
46 </div>
47
48 <!-- The main grid lives here -->
49 <script>
50     var currencyTypeListGridStructure = [{
51         cells : [[
52             {name: 'Code', field:'code'},
53             {name: 'Label', field:'label', width:'auto'}
54         ]]
55     }];
56 </script>
57 <div jsId='currencyTypeListGrid' dojoType="dojox.Grid" structure='currencyTypeListGridStructure'></div>
58 [% END %]