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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 5 18:21:12 CEST 2010


Author: torsten
Date: 2010-05-05 18:21:12 +0200 (Wed, 05 May 2010)
New Revision: 2677

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
Log:
* mpulsweb/templates/casemanagement/main.mako: Wald #1426. Do not
	allow do modify statements if the case is up to be deleted, anonymized
	or is already anonymized.


Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-05-05 16:13:42 UTC (rev 2676)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-05-05 16:21:12 UTC (rev 2677)
@@ -32,31 +32,31 @@
     <ul class="mainMenu" id="mainMenuPrivacy"> <!--ID only because of IE6 -->
         <li>${_('Options')}
             <ul>
-                % if not session.get('case').hasPrivacyStatement():
-                    <li>
-                    <a href="/privacy/set/${session.get('case').id}" 
-                        onclick="return checkModification();">${_('cm_main_set_statement')}
-                    </a>
-                    </li>
-                % elif session.get('case').hasPrivacyStatement():
-                    <li>
-                    <a href="/privacy/decline/${session.get('case').id}/0" 
-                        onclick="return checkModification();">${_('cm_main_revoke_statement')}
-                    </a>
-                    </li>
+                % if session.get('case').getState().getState() not in (3,4,5):
+                  % if not session.get('case').hasPrivacyStatement():
+                      <li>
+                      <a href="/privacy/set/${session.get('case').id}" 
+                          onclick="return checkModification();">${_('cm_main_set_statement')}
+                      </a>
+                      </li>
+                  % elif session.get('case').hasPrivacyStatement():
+                      <li>
+                      <a href="/privacy/decline/${session.get('case').id}/0" 
+                          onclick="return checkModification();">${_('cm_main_revoke_statement')}
+                      </a>
+                      </li>
+                  % endif
+                  <li>
+                  <a href="/case/markForAnonymize/${session.get('case').id}/0" 
+                      onclick="return checkModification();">${_('cm_main_anonymize_case')}
+                  </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="/privacy/listStatements" 
-                        onclick="return checkModification();"> ${_('statement_list_statement')}
-                    </a>
-                    </li>
-                % endif
+                <li>
+                <a href="/privacy/listStatements" 
+                    onclick="return checkModification();"> ${_('statement_list_statement')}
+                </a>
+                </li>
             </ul>
         </li>
     </ul>



More information about the Mpuls-commits mailing list