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>
37 <span>Context Org Unit</span>
38 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect'
39 searchAttr='shortname' labelAttr='shortname'> </select>
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>
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">-->
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>