It's part of conify, but it's living where the rest of conify will (presumably) be migrated for 2.0.
Clearly, we need to have some discussion of how we want to lay out the dojo menu.
Also, assuming trunk/2.0 will use dojo 1.2, using new-style dojo grid
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11177
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<handler path='acq/po/search' template='acq/po/search.tt2'/>
<handler path='acq/receiving/process' template='acq/receiving/process.tt2'/>
<handler path='acq/settings/li_attr' template='acq/settings/li_attr.tt2'/>
+
+ <handler path='conify/global/config/billing_type' template='conify/global/config/billing_type.tt2'/>
</handlers>
</oils_web>
@import "/js/dojo/dojo/resources/dojo.css";
@import "/js/dojo/dijit/themes/tundra/tundra.css";
@import "/js/dojo/dojox/grid/_grid/Grid.css";
+@import "/js/dojo/dojox/grid/resources/Grid.css";
+@import "/js/dojo/dojox/grid/resources/tundraGrid.css";
+
html, body, #oils-base-body-block {
--- /dev/null
+dojo.require('dojox.grid.DataGrid');
+dojo.require('dojo.data.ItemFileReadStore');
+dojo.require('fieldmapper.OrgUtils');
+
+var btContextOrg;
+var btList;
+
+function buildBTGrid() {
+ if(btContextOrg == null)
+ btContextOrg = openils.User.user.ws_ou();
+ fieldmapper.standardRequest(
+ ['open-ils.circ', 'open-ils.circ.billing_type.ranged.retrieve.all'],
+ { async: true,
+ params: [openils.User.authtoken, btContextOrg, fieldmapper.aou.findOrgDepth(btContextOrg)],
+ oncomplete: function(r) {
+ if(btList = openils.Util.readResponse(r)) {
+ var store = new dojo.data.ItemFileReadStore({data:cbt.toStoreData(btList)});
+ btGrid.setStore(store);
+ btGrid.render();
+ }
+ }
+ }
+ );
+}
+
+openils.Util.addOnLoad(buildBTGrid);
+
+
--- /dev/null
+[% WRAPPER default/base.tt2 %]
+<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/billing_type.js'> </script>
+<h1>Billing Types</h1><br/>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="top">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
+ <table jsId="btGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
+ <thead>
+ <tr>
+ <th field="id">ID</th>
+ <th field="name" width='300px;'>Name</th>
+ <th field="owner">Owning Location</th>
+ <th field="default_price">Default Price</th>
+ </tr>
+ </thead>
+ </table>
+ </div>
+</div>
+[% END %]
+
+