[Mpuls-commits] r3745 - wasko/trunk/waskoweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 20 12:20:09 CEST 2010


Author: torsten
Date: 2010-09-20 12:20:08 +0200 (Mon, 20 Sep 2010)
New Revision: 3745

Modified:
   wasko/trunk/waskoweb/templates/casemanagement/main.mako
Log:
* waskoweb/templates/casemanagement/main.mako: Hide link to
	"Verwaltungsfunktionen" is case is not in a editable state.


Modified: wasko/trunk/waskoweb/templates/casemanagement/main.mako
===================================================================
--- wasko/trunk/waskoweb/templates/casemanagement/main.mako	2010-09-20 10:17:35 UTC (rev 3744)
+++ wasko/trunk/waskoweb/templates/casemanagement/main.mako	2010-09-20 10:20:08 UTC (rev 3745)
@@ -100,11 +100,13 @@
                                  id=session.get('case').id)}"
                onclick="return checkModification();">${_('case_cm_phase')}</a>
         </li>
+        % if session.get('case').getState().getState() == 1:
         <li>
             <a href="${h.url_for(controller='caselifetime', action='index',
                                  id=session.get('case').id)}"
                onclick="return checkModification();">Verwaltung</a>
         </li>
+        % endif
         % if h.hasRole(['cm_ka']) and g.mpuls_config.is_enabled('case-module', 'logbook'):
             <li>
                 <a href="${h.url_for(controller='logbook',



More information about the Mpuls-commits mailing list