[Mpuls-commits] r1954 - wasko/branches/2.0/jmdweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 16 09:54:31 CET 2010


Author: torsten
Date: 2010-03-16 09:54:31 +0100 (Tue, 16 Mar 2010)
New Revision: 1954

Modified:
   wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako
Log:
* jmdweb/templates/casemanagement/caselist.mako: Only show checkboxes
	for bundled actions if they are enabled.


Modified: wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako	2010-03-16 08:53:53 UTC (rev 1953)
+++ wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako	2010-03-16 08:54:31 UTC (rev 1954)
@@ -47,7 +47,9 @@
 %>
 
 <%def name="build_list_headers()">
-  <th class="table_header_h table_checkbox">&nbsp;</th>
+  % if g.mpuls_config.is_enabled('case-module', 'casebundle'):
+    <th class="table_header_h table_checkbox">&nbsp;</th>
+  % endif
   % for title, urlpart, style, roles, get_value in fields:
     % if h.hasRole(roles):
       <th class="${style} table_header_h">${title}
@@ -67,7 +69,9 @@
 </%def>
 
 <%def name="build_list_row(case)">
-  <td><input type="checkbox" name="case_id" value="${case.id}"></td>
+  % if g.mpuls_config.is_enabled('case-module', 'casebundle'):
+    <td><input type="checkbox" name="case_id" value="${case.id}"></td>
+  % endif
   % for title, urlpart, style, roles, get_value in fields:
     % if h.hasRole(roles):
      <td>${get_value(case) | F.NA, h}</td>



More information about the Mpuls-commits mailing list