From: erickson Date: Thu, 13 Nov 2008 22:30:06 +0000 (+0000) Subject: In the interest of moving into the TT hierarchy, I started a config interface for... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=008d41b71338455c389df831c6cb175233588dde;p=Evergreen.git In the interest of moving into the TT hierarchy, I started a config interface for billing types. 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 --- diff --git a/Open-ILS/examples/oils_web.xml.example b/Open-ILS/examples/oils_web.xml.example index babb51abb0..a5ac6b3f9c 100644 --- a/Open-ILS/examples/oils_web.xml.example +++ b/Open-ILS/examples/oils_web.xml.example @@ -31,5 +31,7 @@ + + diff --git a/Open-ILS/web/css/skin/default.css b/Open-ILS/web/css/skin/default.css index cda9b27d08..96b98c606d 100644 --- a/Open-ILS/web/css/skin/default.css +++ b/Open-ILS/web/css/skin/default.css @@ -5,6 +5,9 @@ @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 { diff --git a/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js b/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js new file mode 100644 index 0000000000..1a920141e9 --- /dev/null +++ b/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js @@ -0,0 +1,28 @@ +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); + + diff --git a/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 b/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 new file mode 100644 index 0000000000..bad2f4a3c6 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 @@ -0,0 +1,20 @@ +[% WRAPPER default/base.tt2 %] + +

Billing Types


+
+
+ + + + + + + + + +
IDNameOwning LocationDefault Price
+
+
+[% END %] + +