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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 17 12:15:19 CET 2010


Author: torsten
Date: 2010-03-17 12:15:18 +0100 (Wed, 17 Mar 2010)
New Revision: 1990

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/overview.mako
Log:
* mpulsweb/templates/casemanagement/overview.mako: Show export options
only if they are enabled in config


Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/overview.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/overview.mako	2010-03-17 11:14:42 UTC (rev 1989)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/overview.mako	2010-03-17 11:15:18 UTC (rev 1990)
@@ -38,10 +38,12 @@
       % endif
       % if h.hasRole(['admin_ka', 'cm_ka']):
         <option value="stand-in">Vertretung zuweisen</option>
-      <option value="exportXLS">Als Excel-Tabellen exportieren</option>
-      <option value="exportXML">Als XML-Datei exportieren</option>
-      <option value="exportCSV">Als CSV-Datei exportieren</option>
       % endif
+      % if g.mpuls_config.is_enabled('case-module', 'export'):
+        <option value="exportXLS">Als Excel-Tabellen exportieren</option>
+        <option value="exportXML">Als XML-Datei exportieren</option>
+        <option value="exportCSV">Als CSV-Datei exportieren</option>
+      % endif
     </select>
   </div>
   <div class="waska_form_element w50">



More information about the Mpuls-commits mailing list