[open-ils-commits] r11696 - trunk/Open-ILS/web/templates/default/conify/global/config
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 29 13:55:58 EST 2008
Author: erickson
Date: 2008-12-29 13:55:55 -0500 (Mon, 29 Dec 2008)
New Revision: 11696
Modified:
trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
Log:
plugged in the grid selector as an example. still prototyping, though
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-29 18:46:33 UTC (rev 11695)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 2008-12-29 18:55:55 UTC (rev 11696)
@@ -38,16 +38,17 @@
<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;">
+<script>dojo.require('openils.widget.GridColumnPicker');</script>
+
+<!-- column picker menu -->
+<div dojoType="openils.widget.GridColumnPicker" jsid="btGridMenu" id="btGridMenu" style="display: none;" grid='btGrid'>
<div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
</div>
--->
-
+<!-- grid -->
<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' selectionMode='none' columnReordering='true'><!-- headerMenu="btGridMenu">-->
+ rowSelector='20px' selectionMode='none' columnReordering='true' headerMenu="btGridMenu">
<thead>
<tr>
<th field="id">ID</th>
@@ -59,6 +60,18 @@
</table>
</div>
</div>
+<!-- attach the grid to the column picker and load the settings -->
+<script>
+ openils.Util.addOnLoad(
+ function() {
+ btGridMenu.init({
+ grid: btGrid,
+ prefix: 'conify.global.config.billing_type.btGridMenu',
+ authtoken: openils.User.authtoken
+ });
+ }
+ );
+</script>
[% END %]
More information about the open-ils-commits
mailing list