added global_flag editing UI and staff client menu entry
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 May 2010 16:04:46 +0000 (16:04 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 May 2010 16:04:46 +0000 (16:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16519 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/templates/default/conify/global/config/global_flag.tt2 [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul

index bfc2cf7..9e6416f 100644 (file)
 <!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">
diff --git a/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2 b/Open-ILS/web/templates/default/conify/global/config/global_flag.tt2
new file mode 100644 (file)
index 0000000..36e106f
--- /dev/null
@@ -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 %]
+
+
index 533a6ae..79410b7 100644 (file)
@@ -708,6 +708,10 @@ main.menu.prototype = {
                 ['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'); }
index 231c7fe..15819d6 100644 (file)
     <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" />
                 <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;">