conify UIs for config.rule_ stuff;
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Aug 2010 19:19:51 +0000 (19:19 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Aug 2010 19:19:51 +0000 (19:19 +0000)
Includes duration, recurring fine, max fine, and age hold protect

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17316 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.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 f9d41a7..53c9382 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.config_rule_circ_duration "Circulation Duration Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_recurring_fine "Circulation Recurring Fine Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_max_fine "Circulation Max Fine Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_age_hold_protect "Age Hold Protect Rules">
 <!ENTITY staff.main.menu.admin.server_admin.conify.global_flag.label "Global Flags">
 
 <!ENTITY staff.main.menu.admin.server_admin.acq.label "Acquisitions">
diff --git a/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2 b/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2
new file mode 100644 (file)
index 0000000..66677f1
--- /dev/null
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Age Hold Protect Rules' %]
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { ruleAgeProtectGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>Age Hold Protect Rules</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='ruleAgeProtectGrid.showCreateDialog()'>New Age Hold Protect Rule</button>
+            <button dojoType='dijit.form.Button' onClick='ruleAgeProtectGrid.deleteSelected()'>Delete Selected</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="ruleAgeProtectGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['name', 'age', 'prox']"
+            suppressFields="['id']"
+            query="{id: '*'}"
+            fmClass='crahp'
+            editOnEnter='true'/>
+</div>
+[% END %]
+
+
diff --git a/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2 b/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2
new file mode 100644 (file)
index 0000000..70dd12d
--- /dev/null
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Circ Duration Rules' %]
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { ruleCircDurationGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>Circ Duration Rules</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.showCreateDialog()'>New Duration Rule</button>
+            <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.deleteSelected()'>Delete Selected</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="ruleCircDurationGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['name', 'max_renewals', 'shrt', 'normal', 'extended']"
+            suppressFields="['id']"
+            query="{id: '*'}"
+            fmClass='crcd'
+            editOnEnter='true'/>
+</div>
+[% END %]
+
+
diff --git a/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2 b/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2
new file mode 100644 (file)
index 0000000..acfd720
--- /dev/null
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Circ Max Fine Rules' %]
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { ruleMaxFineGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>Circ Max Fine Rules</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='ruleMaxFineGrid.showCreateDialog()'>New Max Fine Rule</button>
+            <button dojoType='dijit.form.Button' onClick='ruleMaxFineGrid.deleteSelected()'>Delete Selected</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="ruleMaxFineGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['name', 'amount', 'is_percent']"
+            suppressFields="['id']"
+            query="{id: '*'}"
+            fmClass='crmf'
+            editOnEnter='true'/>
+</div>
+[% END %]
+
+
diff --git a/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2 b/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2
new file mode 100644 (file)
index 0000000..c561b61
--- /dev/null
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Recurring Fine Rules' %]
+<script type="text/javascript">
+    dojo.require('openils.Util');
+    dojo.require('openils.widget.AutoGrid');
+    openils.Util.addOnLoad( function() { ruleRecurringFineGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>Recurring Fine Rules</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='ruleRecurringFineGrid.showCreateDialog()'>New Recurring Fine Rule</button>
+            <button dojoType='dijit.form.Button' onClick='ruleRecurringFineGrid.deleteSelected()'>Delete Selected</button>
+        </div>
+    </div>
+    <div>
+    <table  jsId="ruleRecurringFineGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['name', 'recurrence_interval', 'low', 'normal', 'high']"
+            suppressFields="['id']"
+            query="{id: '*'}"
+            fmClass='crrf'
+            editOnEnter='true'/>
+</div>
+[% END %]
+
+
index 9099a0f..9a46247 100644 (file)
@@ -617,6 +617,22 @@ main.menu.prototype = {
                 ['oncommand'],
                 function() { open_eg_web_page('conify/global/permission/grp_penalty_threshold'); }
             ],
+            'cmd_local_admin_config_rule_circ_duration' : [
+                ['oncommand'],
+                function() { open_eg_web_page('conify/global/config/rule/circ_duration'); }
+            ],
+            'cmd_local_admin_config_rule_recurring_fine' : [
+                ['oncommand'],
+                function() { open_eg_web_page('conify/global/config/rule/recurring_fine'); }
+            ],
+            'cmd_local_admin_config_rule_max_fine' : [
+                ['oncommand'],
+                function() { open_eg_web_page('conify/global/config/rule/max_fine'); }
+            ],
+            'cmd_local_admin_config_rule_age_hold_protect' : [
+                ['oncommand'],
+                function() { open_eg_web_page('conify/global/config/rule/age_hold_protect'); }
+            ],
             'cmd_local_admin_external_text_editor' : [
                 ['oncommand'],
                 function() {
index 24a6942..d65d934 100644 (file)
     <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_config_rule_circ_duration"/>
+    <command id="cmd_server_admin_config_rule_recurring_fine"/>
+    <command id="cmd_server_admin_config_rule_max_fine"/>
+    <command id="cmd_server_admin_config_rule_age_hold_protect"/>
     <command id="cmd_server_admin_booking_resource" />
     <command id="cmd_server_admin_booking_resource_type" />
     <command id="cmd_server_admin_booking_resource_attr" />
                 <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"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_circ_duration;" command="cmd_server_admin_config_rule_circ_duration"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_recurring_fine;" command="cmd_server_admin_config_rule_recurring_fine"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_max_fine;" command="cmd_server_admin_config_rule_max_fine"/>
+                <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_age_hold_protect;" command="cmd_server_admin_config_rule_age_hold_protect"/>
                 <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;">
                     <menupopup id="main.menu.admin.server.acq.popup">
                         <menuitem label="&staff.main.menu.admin.server_admin.acq.fund.label;" accesskey="&staff.main.menu.admin.server_admin.acq.fund.accesskey;" command="cmd_server_admin_acq_fund" />