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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 1 08:56:21 CET 2010


Author: torsten
Date: 2010-03-01 08:56:21 +0100 (Mon, 01 Mar 2010)
New Revision: 1866

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
Log:
Only show caseappointments if they are enabled 


Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-03-01 07:54:51 UTC (rev 1865)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-03-01 07:56:21 UTC (rev 1866)
@@ -104,12 +104,14 @@
                 ${_('cm_menu_link_organisation')}
             </a>
           </li>
-          <li>
-            <a href="/caseappointment/index/${session.get('case').id}" 
-               onclick="return checkModification();">
-                ${_('cm_menu_link_appointment')}
-            </a>
-          </li>
+          % if g.mpuls_config.is_enabled('case-module', 'appointments'):
+            <li>
+              <a href="/caseappointment/index/${session.get('case').id}" 
+                 onclick="return checkModification();">
+                  ${_('cm_menu_link_appointment')}
+              </a>
+            </li>
+          % endif
           % if h.hasRole(['cm_ka']):
             <li>
               <a href="/logbook/index/${session.get('case').id}" 



More information about the Mpuls-commits mailing list