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

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


Author: torsten
Date: 2010-06-10 12:07:02 +0200 (Thu, 10 Jun 2010)
New Revision: 2965

Modified:
   base/trunk/mpulsweb/templates/casemanagement/search.mako
Log:
* mpulsweb/templates/casemanagement/search.mako: Only show search option for anonymized cases if anonymization is enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-06-10 09:51:59 UTC (rev 2964)
+++ base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-06-10 10:07:02 UTC (rev 2965)
@@ -48,14 +48,16 @@
           <label for="show_markdelete">
             <img title="Zu löschende Fallakten" alt="Schwebend Gelöscht" src="${h.url_for('/images/icons/delete_inactive_22.png')}">Schwebend gelöscht (${c.count_del})
           </label><br>
-          <input type="checkbox" name="state" id="show_markanonymize" value="4" checked="checked">
-          <label for="show_markanonymize">
-            <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Schwebend anonymisiert (${c.count_markanon})
-          </label><br>
-          <input type="checkbox" name="state" id="show_anonymized" value="5" checked="checked">
-          <label for="show_anonymized">
-            <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Anonymisiert (${c.count_anon})
-          </label>
+          % if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+            <input type="checkbox" name="state" id="show_markanonymize" value="4" checked="checked">
+            <label for="show_markanonymize">
+              <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Schwebend anonymisiert (${c.count_markanon})
+            </label><br>
+            <input type="checkbox" name="state" id="show_anonymized" value="5" checked="checked">
+            <label for="show_anonymized">
+              <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Anonymisiert (${c.count_anon})
+            </label>
+          % endif
         </td>
       </tr>
       <tr style="${not c.extended_search and 'display:none' or ''}">



More information about the Mpuls-commits mailing list