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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 16 14:33:13 CEST 2010


Author: torsten
Date: 2010-09-16 14:33:13 +0200 (Thu, 16 Sep 2010)
New Revision: 3680

Modified:
   wasko/trunk/waskoweb/templates/casemanagement/main.mako
Log:
* waskoweb/templates/casemanagement/main.mako: Issue1123: Added more conditions to hide option on not editable cases.


Modified: wasko/trunk/waskoweb/templates/casemanagement/main.mako
===================================================================
--- wasko/trunk/waskoweb/templates/casemanagement/main.mako	2010-09-16 12:33:03 UTC (rev 3679)
+++ wasko/trunk/waskoweb/templates/casemanagement/main.mako	2010-09-16 12:33:13 UTC (rev 3680)
@@ -152,7 +152,7 @@
                         </a>
                     </li>
                 % endif
-                % if g.mpuls_config.is_enabled('case-module', 'appointments'):
+                % if g.mpuls_config.is_enabled('case-module', 'appointments') and session.get('case').getState().getState() == 1:
                 <li>
                     <a href="${h.url_for(controller='caseappointment',
                                          action='newReminder',
@@ -170,7 +170,7 @@
                         </a>
                     </li>
                 % endif
-                % if g.mpuls_config.is_enabled('case-module', 'copy'):
+                % if g.mpuls_config.is_enabled('case-module', 'copy') and session.get('case').getState().getState() == 1:
                 <li>
                     <a href="${h.url_for(controller='case', action='copy', 
                                          id=session.get('case').id,



More information about the Mpuls-commits mailing list