[open-ils-commits] r13473 - in trunk/Open-ILS/web/templates/default: . conify/global/config (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 26 12:10:06 EDT 2009
Author: erickson
Date: 2009-06-26 12:10:04 -0400 (Fri, 26 Jun 2009)
New Revision: 13473
Added:
trunk/Open-ILS/web/templates/default/conify/global/config/org_unit_setting_type.tt2
Modified:
trunk/Open-ILS/web/templates/default/menu.tt2
Log:
org_unit_setting_type management interface. comitted in anticipation of the new org_unit_setting_type table. not yet functional. will add to staff client when it's ready to roll out
Added: trunk/Open-ILS/web/templates/default/conify/global/config/org_unit_setting_type.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/org_unit_setting_type.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/org_unit_setting_type.tt2 2009-06-26 16:10:04 UTC (rev 13473)
@@ -0,0 +1,63 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Org Unit Setting Types' %]
+
+<script type ="text/javascript">
+ dojo.require('dijit.form.FilteringSelect');
+ dojo.require('openils.widget.AutoGrid');
+
+ openils.Util.addOnLoad(
+ function() {
+ ostGrid.overrideEditWidgets.datatype = dTypeSelector;
+ ostGrid.loadAll({order_by:{coust : 'name'}});
+ }
+ );
+
+ function formatDatatype(dtype) {
+ // pull the label from the type selector
+ return dojo.query('[value=' + dtype +']', dTypeSelector.domNode)[0].innerHTML;
+ }
+
+</script>
+
+<div class='hidden'>
+ <select dojoType="dijit.form.FilteringSelect" jsId="dTypeSelector">
+ <option value='string' selected='selected'>String</option>
+ <option value='bool'>Boolean</option>
+ <option value='integer'>Integer</option>
+ <option value='float'>Float</option>
+ <option value='currency'>Currency</option>
+ <option value='interval'>Interval</option>
+ <option value='date'>Date</option>
+ <option value='object'>Object</option>
+ <option value='array'>Array</option>
+ <option value='link'>Link</option>
+ </select>
+</div>
+
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
+ <div>Org Unit Setting Types</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ostGrid.showCreateDialog()'>New Org Setting Type</button>
+ <button dojoType='dijit.form.Button' onClick='ostGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+</div>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <table jsId="ostGrid"
+ autoHeight='true'
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'label', 'datatype', 'description', 'fm_class']"
+ query="{name: '*'}"
+ defaultCellWidth='"auto"'
+ fmClass='coust'
+ editOnEnter='true'>
+ <thead>
+ <tr>
+ <th field="datatype" formatter="formatDtype"/>
+ </tr>
+ </thead>
+ </table>
+ </div>
+
+[% END %]
Modified: trunk/Open-ILS/web/templates/default/menu.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/menu.tt2 2009-06-26 15:09:40 UTC (rev 13472)
+++ trunk/Open-ILS/web/templates/default/menu.tt2 2009-06-26 16:10:04 UTC (rev 13473)
@@ -116,6 +116,8 @@
onClick="location.href = '[% ctx.base_path %]/conify/global/action_trigger/event_definition';">Action Trigger</div>
<div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
onClick="location.href = '[% ctx.base_path %]/conify/global/action/survey';">Surveys</div>
+ <div dojoType="dijit.MenuItem" iconClass="dijitEditorIcon dijitEditorIconCopy"
+ onClick="location.href = '[% ctx.base_path %]/conify/global/config/org_unit_setting_type';">Org Unit Setting Types</div>
</div>
</div>
</div>
More information about the open-ils-commits
mailing list