[open-ils-commits] r16519 - in trunk/Open-ILS: web/opac/locale/en-US web/templates/default/conify/global/config xul/staff_client/chrome/content/main (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 27 12:04:49 EDT 2010
Author: erickson
Date: 2010-05-27 12:04:46 -0400 (Thu, 27 May 2010)
New Revision: 16519
Added:
trunk/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Log:
added global_flag editing UI and staff client menu entry
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-05-27 16:04:44 UTC (rev 16518)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-05-27 16:04:46 UTC (rev 16519)
@@ -689,6 +689,7 @@
<!ENTITY staff.main.menu.admin.server_admin.conify.circulation_modifier.label "Circulation Modifiers">
<!ENTITY staff.main.menu.admin.server_admin.conify.org_unit_setting_type "Organization Unit Setting Types">
<!ENTITY staff.main.menu.admin.server_admin.conify.usr_setting_type "User Setting Types">
+<!ENTITY staff.main.menu.admin.server_admin.conify.global_flag.label "Global Flags">
<!ENTITY staff.main.menu.admin.server_admin.acq.label "Acquisitions">
<!ENTITY staff.main.menu.admin.server_admin.acq.accesskey "A">
Added: trunk/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2 2010-05-27 16:04:46 UTC (rev 16519)
@@ -0,0 +1,31 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Global Flags' %]
+<script>
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad(
+ function() {
+ gfGrid.overrideWidgetArgs.name = {readOnly : true};
+ gfGrid.loadAll();
+ }
+ );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Global Flags</div>
+ <div></div>
+ </div>
+ <div>
+ <table jsId="gfGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'label', 'enabled', 'value']"
+ suppressFields="['name']"
+ query="{name: '*'}"
+ defaultCellWidth='30'
+ fmClass='cgf'
+ hideSelector='true'
+ editOnEnter='true'/>
+</div>
+[% END %]
+
+
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-05-27 16:04:44 UTC (rev 16518)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-05-27 16:04:46 UTC (rev 16519)
@@ -708,6 +708,10 @@
['oncommand'],
function() { open_eg_web_page('conify/global/config/circ_modifier'); }
],
+ 'cmd_server_admin_global_flag' : [
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/config/global_flag'); }
+ ],
'cmd_server_admin_org_unit_setting_type' : [
['oncommand'],
function() { open_eg_web_page('conify/global/config/org_unit_setting_type'); }
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-05-27 16:04:44 UTC (rev 16518)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-05-27 16:04:46 UTC (rev 16519)
@@ -145,6 +145,7 @@
<command id="cmd_server_admin_acq_claim_policy_action"/>
<command id="cmd_server_admin_z39_source"/>
<command id="cmd_server_admin_circ_mod"/>
+ <command id="cmd_server_admin_global_flag"/>
<command id="cmd_server_admin_org_unit_setting_type"/>
<command id="cmd_server_admin_usr_setting_type"/>
<command id="cmd_server_admin_booking_resource" />
@@ -369,6 +370,7 @@
<menuitem label="&staff.main.menu.admin.server_admin.conify.billing_type.label;" command="cmd_server_admin_billing_type"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.z3950_source.label;" command="cmd_server_admin_z39_source"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.circulation_modifier.label;" command="cmd_server_admin_circ_mod"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.global_flag.label;" command="cmd_server_admin_global_flag"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.org_unit_setting_type;" command="cmd_server_admin_org_unit_setting_type"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.usr_setting_type;" command="cmd_server_admin_usr_setting_type"/>
<menu id="main.menu.admin.server.acq" label="&staff.main.menu.admin.server_admin.acq.label;" accesskey="&staff.main.menu.admin.server_admin.acq.accesskey;">
More information about the open-ils-commits
mailing list