[Mpuls-commits] r1769 - wasko/branches/2.0/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 12:04:56 CET 2010


Author: torsten
Date: 2010-02-25 12:04:56 +0100 (Thu, 25 Feb 2010)
New Revision: 1769

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
Log:
* mpulsweb/templates/casemanagement/main.mako: Show privacy menu
dependign on setting of the configuration.


Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-02-25 11:00:58 UTC (rev 1768)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-02-25 11:04:56 UTC (rev 1769)
@@ -27,24 +27,42 @@
 </%def>
 
 <%def name="buildPrivacyfield()">
-   <div class="menu">
-     <h1>${_('cm_main_header_data_protection')}</h1>
-       <div class="actions">
-          <div id="marked">
+  % if g.mpuls_config.is_enabled('case-module', 'privacy'):
+    <div class="menu">
+      <h1>${_('cm_main_header_data_protection')}</h1>
+      <div class="actions">
+        <div id="marked">
           <ul>
           % if not session.get('case').hasPrivacyStatement():
-            <li><a href="/statement/setPrivacyStatement/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_main_set_statement')}</a></li>
+            <li>
+              <a href="/statement/setPrivacyStatement/${session.get('case').id}" 
+                 onclick="return checkModification();">${_('cm_main_set_statement')}
+              </a>
+            </li>
           % elif session.get('case').hasPrivacyStatement():
-            <li><a href="/statement/declinePrivacyStatement/${session.get('case').id}/0" onclick="return checkModification();"> ${_('cm_main_revoke_statement')}</a></li>
+            <li>
+              <a href="/statement/declinePrivacyStatement/${session.get('case').id}/0" 
+                 onclick="return checkModification();">${_('cm_main_revoke_statement')}
+              </a>
+            </li>
           % endif
           % if session.get('case').getState().getState() not in (4,5):
-            <li><a href="/case/markForAnonymize/${session.get('case').id}/0" onclick="return checkModification();"> ${_('cm_main_anonymize_case')}</a></li>
-            <li><a href="/statement/listStatements/${session.get('case').id}" onclick="return checkModification();"> ${_('statement_list_statement')}</a></li>
+            <li>
+              <a href="/case/markForAnonymize/${session.get('case').id}/0" 
+                 onclick="return checkModification();">${_('cm_main_anonymize_case')}
+              </a>
+            </li>
+            <li>
+              <a href="/statement/listStatements/${session.get('case').id}" 
+                 onclick="return checkModification();"> ${_('statement_list_statement')}
+              </a>
+            </li>
           % endif
           </ul>
         </div>
-       </div>
-  </div>
+      </div>
+    </div>
+  % endif
 </%def>
 
 <%def name="buildNavigation()">



More information about the Mpuls-commits mailing list