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/>
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);
12 <table class='dijitTooltipTable'>
14 <td><label for="name">Name: </label></td>
15 <td><input dojoType="dijit.form.TextBox" name="name"/></td>
18 <td><label for="owner">Owning Location: </label></td>
20 <input dojoType="openils.widget.OrgUnitFilteringSelect" name="owner"
21 jsId='btOwningOrg' searchAttr='shortname' labelAttr='shortname'/>
25 <td><label for="default_price">Default Price: </label></td>
26 <td><input dojoType="dijit.form.CurrencyTextBox" name="default_price" required='false'/></td>
29 <td colspan='2' align='center'>
30 <button dojoType='dijit.form.Button' type="submit">Create</button>
36 <button dojoType='dijit.form.Button' onclick='btDrawEditDialog();'>Edit Current Row</button>
37 <span>Context Org Unit</span>
38 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect'
39 searchAttr='shortname' labelAttr='shortname'> </select>
41 <script>dojo.require('openils.widget.GridColumnPicker');</script>
43 <!-- column picker menu -->
44 <div dojoType="openils.widget.GridColumnPicker" jsid="btGridMenu" id="btGridMenu" style="display: none;" grid='btGrid'>
45 <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
48 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
49 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
50 <table jsId="btGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}"
51 rowSelector='20px' columnReordering='true' headerMenu="btGridMenu">
54 <th field="id">ID</th>
55 <th field="name" width='250px;'>Name</th>
56 <th field="owner" width='250px;'get='getOrgInfo'>Owning Location</th>
57 <th field="default_price">Default Price</th>
63 <div style='display:none;' dojoType="dijit.Dialog" jsId='btEditDialog'>
64 <script>dojo.require('dijit.form.TextBox');</script>
65 <b>Test Editing Dialog</b>
70 <td><span id='btId'/></td>
74 <td><input dojoType='dijit.form.TextBox' jsId='btName'/></td>
77 <td>Owning Location</td>
78 <td><select dojoType='openils.widget.OrgUnitFilteringSelect' jsId='btOwnerLocation' searchAttr='shortname' labelAttr='shortname'/></td>
81 <td> DefaultPrice</td>
82 <td><input dojoType='dijit.form.CurrencyTextBox' jsId='btDefaultPrice'></td>
85 <td colspan='2' align='center'>
86 <button jsId='editSave' dojoType='dijit.form.Button'>Save Changes</button>