[Mpuls-commits] r6037 - base/trunk/mpulsweb/templates/casemanagement
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Aug 24 08:47:04 CEST 2012
Author: torsten
Date: 2012-08-24 08:47:04 +0200 (Fri, 24 Aug 2012)
New Revision: 6037
Added:
base/trunk/mpulsweb/templates/casemanagement/new_statement_block.mako
Modified:
base/trunk/mpulsweb/templates/casemanagement/new.mako
Log:
Seperated the statement block on creating new cases in a extra file which will
be used in mulitiple projects. Adapt default new template to include the new
statement file.
Modified: base/trunk/mpulsweb/templates/casemanagement/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/new.mako 2012-08-21 10:30:12 UTC (rev 6036)
+++ base/trunk/mpulsweb/templates/casemanagement/new.mako 2012-08-24 06:47:04 UTC (rev 6037)
@@ -15,22 +15,7 @@
<legend>Basisdaten</legend>
<p><font color="red">${_('Please notice, that the template to create new data does not allow input of data. Please create a project specific template and controller function')}</font></p>
</fieldset>
- <div style="padding: 1em 0;">
- <p>${_('Please notice, that the acceptence statement is the base for entering personal data. Click on Print Statement. Use the Back button to get back to this page.')}</p>
- </div>
- <div class="waska_form_element w100">
- <input type="checkbox" id="statement_signed" name="statement_signed"><label for="statement_signed">${_('The acceptence statement for entering, using and editing personal data has been obtained while initial meeting.')}</label>
- </div>
-
- % if g.mpuls_config.is_enabled('case-module', 'meta-server'):
- <div style="padding: 1em 0;">
- <p>${_('Please notice, that the sync acceptence statement is the base for using the AiR case.')} <a href="${h.url(controller='meta', action='print_empty_statement')}">${_('Print statement')}</a></p>
- </div>
- <div class="waska_form_element w100">
- <input type="checkbox" id="sync_permission" name="sync_permission"><label for="sync_permisson">${_('The sync acceptence statement for using the AiR case has been obtained while the initial meeting.')}</label>
- </div>
- % endif
-
+ <%include file="new_statement_block.mako"/>
<div class="input_space">
<input type="submit" value="${_('Print statement')}" name="print" id="newCaseStatement">
<input type="submit" value="${_('Create new case document')}" name="save" id="newCaseSave">
Added: base/trunk/mpulsweb/templates/casemanagement/new_statement_block.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/new_statement_block.mako (rev 0)
+++ base/trunk/mpulsweb/templates/casemanagement/new_statement_block.mako 2012-08-24 06:47:04 UTC (rev 6037)
@@ -0,0 +1,13 @@
+<div>
+ <input type="checkbox" id="statement_signed" name="statement_signed"><label for="statement_signed"><strong>${_('Case-Management case (required)')}</strong></label><br>
+ ${_('The acceptence statement for entering, using and editing personal data has been obtained while initial meeting.')}
+</div>
+% if g.mpuls_config.is_enabled('case-module', 'meta-server'):
+<div style="margin-left:2em;">
+ <input type="checkbox" id="sync_permission" name="sync_permission"><label for="sync_permisson"><strong>${_('AiR-Case (optional)')}</strong></label><br>
+ ${_('The sync acceptence statement for using the AiR case has been obtained while the initial meeting.')}
+</div>
+% endif
+<div style="margin:1em 0em">
+ <p class="note">${_('Please notice, that the acceptence statement is the base for entering personal data. Click on Print Statement. Use the Back button to get back to this page.')}</p>
+</div>
More information about the Mpuls-commits
mailing list