[Mpuls-commits] r2966 - base/trunk/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 10 12:08:04 CEST 2010


Author: torsten
Date: 2010-06-10 12:08:04 +0200 (Thu, 10 Jun 2010)
New Revision: 2966

Modified:
   base/trunk/mpulsweb/templates/casemanagement/overview.mako
Log:
* mpulsweb/templates/casemanagement/overview.mako: Only show anonyization-actions if anonymization is enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/overview.mako	2010-06-10 10:07:02 UTC (rev 2965)
+++ base/trunk/mpulsweb/templates/casemanagement/overview.mako	2010-06-10 10:08:04 UTC (rev 2966)
@@ -30,13 +30,17 @@
       <option value="no_action">Keine Aktion</option>
       % if h.hasRole(['admin']):
         <option value="delete">Löschen</option>
-        <option value="anonymize">Anonymisieren</option>
+        % if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+          <option value="anonymize">Anonymisieren</option>
+        % endif
         <option value="restore">Wiederherstellen</option>
         <option value="transfer">Bearbeitung übertragen</option>
       % endif
       % if h.hasRole(['cm']):
         <option value="markdelete">Löschen</option>
-        <option value="markanonymize">Anonymisieren</option>
+        % if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+          <option value="markanonymize">Anonymisieren</option>
+        % endif
       % endif
       % if h.hasRole(['admin', 'cm']):
         <option value="standin">Vertretung zuweisen</option>



More information about the Mpuls-commits mailing list