[open-ils-commits] r11400 - in trunk/Open-ILS/web: js/ui/default/conify/global/config templates/default/conify/global/config

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 3 18:04:03 EST 2008


Author: erickson
Date: 2008-12-03 18:03:57 -0500 (Wed, 03 Dec 2008)
New Revision: 11400

Modified:
   trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js
   trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
Log:
started plugging in some edit options.  enabled column re-ordering (mostly to test).  added (commented out) column picker also to test / for reference

Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js	2008-12-03 23:02:59 UTC (rev 11399)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js	2008-12-03 23:03:57 UTC (rev 11400)
@@ -1,6 +1,8 @@
 dojo.require('dojox.grid.DataGrid');
-dojo.require('dojo.data.ItemFileReadStore');
+dojo.require('dojox.grid.cells.dijit');
+dojo.require('dojo.data.ItemFileWriteStore');
 dojo.require('dijit.form.CurrencyTextBox');
+dojo.require('dojox.widget.PlaceholderMenuItem');
 dojo.require('fieldmapper.OrgUtils');
 dojo.require('openils.widget.OrgUnitFilteringSelect');
 
@@ -37,7 +39,7 @@
             oncomplete: function(r) {
                 if(btList = openils.Util.readResponse(r)) {
                     btList = openils.Util.objectSort(btList);
-                    var store = new dojo.data.ItemFileReadStore({data:cbt.toStoreData(btList)});
+                    var store = new dojo.data.ItemFileWriteStore({data:cbt.toStoreData(btList)});
                     btGrid.setStore(store);
                     btGrid.render();
                 }

Modified: trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2	2008-12-03 23:02:59 UTC (rev 11399)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2	2008-12-03 23:03:57 UTC (rev 11400)
@@ -38,15 +38,22 @@
 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect' 
     searchAttr='shortname' labelAttr='shortname'> </select>
 
+<!-- not enough columns to matter here, but a good example of dojo column picker
+<div dojoType="dijit.Menu" jsid="btGridMenu" id="btGridMenu" style="display: none;">
+    <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
+</div>
+-->
+
 <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'>
+        <table jsId="btGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" 
+            rowSelector='20px' selectionMode='none' columnReordering='true' headerMenu="btGridMenu">
             <thead>
                 <tr>
                     <th field="id">ID</th>
-                    <th field="name" width='250px;'>Name</th>
+                    <th field="name" width='250px;' editable='true' cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Name</th>
                     <th field="owner" width='250px;' get='getOrgInfo'>Owning Location</th>
-                    <th field="default_price">Default Price</th>
+                    <th field="default_price" editable='true' cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.CurrencyTextBox'>Default Price</th>
                 </tr>
             </thead>
         </table>    



More information about the open-ils-commits mailing list