]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
can't reference a JS object that isn't there
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / config / billing_type.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/billing_type.js'> </script>
3 <h1>Billing Types</h1><br/>
4
5
6 <div dojoType="dijit.form.DropDownButton">
7     <span>New Billing Type</span>
8     <div dojoType="dijit.TooltipDialog" execute="btCreate(arguments[0]);">
9         <script type='dojo/connect' event='onOpen'>
10             new openils.User().buildPermOrgSelector('CREATE_BILLING_TYPE', btOwningOrg);
11         </script>
12         <table class='dijitTooltipTable'>
13             <tr>
14                 <td><label for="name">Name: </label></td>
15                 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
16             </tr>
17             <tr>
18                 <td><label for="owner">Owning Location: </label></td>
19                 <td>
20                     <input dojoType="openils.widget.OrgUnitFilteringSelect" name="owner" 
21                         jsId='btOwningOrg' searchAttr='shortname' labelAttr='shortname'/>
22                 </td>
23             </tr>
24             <tr>
25                 <td><label for="default_price">Default Price: </label></td>
26                 <td><input dojoType="dijit.form.CurrencyTextBox" name="default_price" required='false'/></td>
27             </tr>
28             <tr>
29                 <td colspan='2' align='center'>
30                     <button dojoType='dijit.form.Button' type="submit">Create</button>
31                 </td>
32             </tr>
33         </table>
34     </div>
35 </div> 
36
37 <span>Context Org Unit</span>
38 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect' 
39     searchAttr='shortname' labelAttr='shortname'> </select>
40
41 <!-- not enough columns to matter here, but a good example of dojo column picker
42 <div dojoType="dijit.Menu" jsid="btGridMenu" id="btGridMenu" style="display: none;">
43     <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
44 </div>
45 -->
46
47 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
48     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
49         <table jsId="btGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" 
50             rowSelector='20px' selectionMode='none' columnReordering='true'><!-- headerMenu="btGridMenu">-->
51             <thead>
52                 <tr>
53                     <th field="id">ID</th>
54                     <th field="name" width='250px;' editable='true' cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Name</th>
55                     <th field="owner" width='250px;' get='getOrgInfo'>Owning Location</th>
56                     <th field="default_price" editable='true' cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.CurrencyTextBox'>Default Price</th>
57                 </tr>
58             </thead>
59         </table>    
60     </div>
61 </div>
62
63 [% END %]
64
65