[Mpuls-commits] r5581 - base/trunk/mpulsweb/templates/casemanagement/dialogs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 15 15:13:12 CET 2011


Author: torsten
Date: 2011-11-15 15:13:11 +0100 (Tue, 15 Nov 2011)
New Revision: 5581

Modified:
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako
Log:
Disable option to anoymize export if it is not enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako	2011-11-15 14:11:18 UTC (rev 5580)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako	2011-11-15 14:13:11 UTC (rev 5581)
@@ -47,13 +47,19 @@
 </ul>
 % endif
 
-<h3>${_('Anonymisation')}</h3>
-<p>
-${_('Please notice, that you export personal data, if you do not export with')} '${_('Export anonymisated data')}' ${_('You need to follow the data privacy.')}
-</p>
-<p>
-  <input type="checkbox" name="exportanonym" id="exportanonym" value="1"> <label for="exportanonym">${_('Export anonymisated data')}<label>
-</p>
+% if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+  <h3>${_('Anonymisation')}</h3>
+  <p>
+  ${_('Please notice, that you export personal data, if you do not export with')} ${_('Export anonymisated data')}. ${_('You need to follow the data privacy.')}
+  </p>
+  <p>
+    <input type="checkbox" name="exportanonym" id="exportanonym" value="1"> <label for="exportanonym">${_('Export anonymisated data')}<label>
+  </p>
+% else:
+  <p>
+  ${_('Please notice, that you export personal data.')} ${_('You need to follow the data privacy.')}
+  </p>
+% endif
 <input type="hidden" name="exporttype" value="">
 <input type="submit" value="${_('Download export')}">
 </form>



More information about the Mpuls-commits mailing list