[Mpuls-commits] r2974 - base/trunk/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 10 12:40:21 CEST 2010


Author: torsten
Date: 2010-06-10 12:40:17 +0200 (Thu, 10 Jun 2010)
New Revision: 2974

Modified:
   base/trunk/mpulsweb/templates/casemanagement/search.mako
Log:
* mpulsweb/templates/casemanagement/search.mako: Only show search options (standin, editor) for cm user if organisation is enabled


Modified: base/trunk/mpulsweb/templates/casemanagement/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-06-10 10:34:48 UTC (rev 2973)
+++ base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-06-10 10:40:17 UTC (rev 2974)
@@ -24,19 +24,24 @@
       </tr>
       % endif
       % if h.hasRole(['cm_ka']):
-        <tr style="${not c.extended_search and 'display:none' or ''}">
-          <td class="label">${_('Responsibility')}</td>
-          <td>
-            <input type="checkbox" name="own" id="show_own" value="1" checked="checked">
-            <label for="show_own">
-              <img title="Eigene Fallakten" alt="Bearbeiter"  src="${h.url_for('/images/icons/edit_editor.png')}">Eigene (${c.count_own})
-            </label><br>
-            <input type="checkbox" name="standin" id="show_other" value="1" checked="checked">
-            <label for="show_other">
-              <img title="Vertreter Fallakten" alt="Vertreter"  src="${h.url_for('/images/icons/edit_editors_22.png')}">Vertretung (${c.count_standin})
-            </label>
-          </td>
-        </tr>
+        % if g.mpuls_config.is_enabled('case-module', 'organisation'):
+          <tr style="${not c.extended_search and 'display:none' or ''}">
+            <td class="label">${_('Responsibility')}</td>
+            <td>
+              <input type="checkbox" name="own" id="show_own" value="1" checked="checked">
+              <label for="show_own">
+                <img title="Eigene Fallakten" alt="Bearbeiter"  src="${h.url_for('/images/icons/edit_editor.png')}">Eigene (${c.count_own})
+              </label><br>
+              <input type="checkbox" name="standin" id="show_other" value="1" checked="checked">
+              <label for="show_other">
+                <img title="Vertreter Fallakten" alt="Vertreter"  src="${h.url_for('/images/icons/edit_editors_22.png')}">Vertretung (${c.count_standin})
+              </label>
+            </td>
+          </tr>
+        % else:
+            <input type="hidden" name="own" id="show_own" value="">
+            <input type="hidden" name="standin" id="show_other" value="">
+        % endif
       % endif
       <tr style="${not c.extended_search and 'display:none' or ''}">
         <td class="label">${_('Status')}</td>



More information about the Mpuls-commits mailing list