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>
6 <!-- load the page-specific JS -->
7 <script src='[% ctx.media_prefix %]/js/ui/default/acq/financial/list_currency_types.js'> </script>
9 <script type="text/javascript">
10 function createCT(fields) {
11 alert('create: ' + fields.code);
15 <div class='oils-acq-actions-div'>
16 <div dojoType="dijit.form.DropDownButton">
17 <span>New Currency Type</span>
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);
25 <table class='dijitTooltipTable'>
27 <td><label for="label">Label: </label></td>
28 <td><input dojoType="dijit.form.TextBox" name="label"/></td>
31 <td><label for="name">Code: </label></td>
32 <td><input dojoType="dijit.form.TextBox" name="code"/></td>
35 <td colspan='2' align='center'>
36 <button dojoType=dijit.form.Button type="submit">Create</button>
43 <button dojoType="dijit.form.Button" onclick="deleteSelectedCT()">
48 <!-- The main grid lives here -->
50 var currencyTypeListGridStructure = [{
52 {name: 'Code', field:'code'},
53 {name: 'Label', field:'label', width:'auto'}
57 <div jsId='currencyTypeListGrid' dojoType="dojox.Grid" structure='currencyTypeListGridStructure'></div>