[Mpuls-commits] r5270 - waska/branches/waska3/waskaweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Aug 30 09:31:06 CEST 2011
Author: torsten
Date: 2011-08-30 09:31:05 +0200 (Tue, 30 Aug 2011)
New Revision: 5270
Removed:
waska/branches/waska3/waskaweb/templates/casemanagement/digest_body.mako
Log:
L?\195?\182sche WASKA-spezifische Zusammenfassung. Verwende wie auch WASKU die
Zusammenfassung der Basis
Deleted: waska/branches/waska3/waskaweb/templates/casemanagement/digest_body.mako
===================================================================
--- waska/branches/waska3/waskaweb/templates/casemanagement/digest_body.mako 2011-08-30 07:30:12 UTC (rev 5269)
+++ waska/branches/waska3/waskaweb/templates/casemanagement/digest_body.mako 2011-08-30 07:31:05 UTC (rev 5270)
@@ -1,54 +0,0 @@
-## -*- coding: utf-8 -*-
-<%inherit file="digest.mako" />
-<%! import mpulsweb.lib.helper.filters as F %>
-
-<%def name="renderCaseInfo(case)">
- <h2>${_('Digest youth')}</h2>
- <table>
- % for num, field in enumerate(c.case.get_digest_fields()):
- % if field.name in ['kundennummer', 'name_1', 'vorname_1', 'geburtsdatum', 'strasse', 'strassenr', 'plz', 'wohnort', 'vorwahl', 'telefon_1', 'mobiltelefon', 'telefon_sonstige', 'email']:
- <tr class="${num % 2 and 'hl' or ''}">
- <td class="label">${c.case.get_description(field.name)}</td>
- <td>${h.literal(F.nl_to_br(h.convertForDigest(c.case.get_value(field.name))))| F.NA}
- % if field.name == 'geburtsdatum' and c.case.first_meeting and c.case.get_value(field.name):
- (${_('Age on first contact: %s years') % h.get_age(c.case.first_meeting - c.case.get_value(field.name)) | F.NA})
- % endif
- </td>
- </tr>
- %endif
- % endfor
- </table>
- <h2>${_('Angaben zum Erziehungsberechtigten')}</h2>
- <table>
- % for num, field in enumerate(c.case.get_digest_fields()):
- % if field.name in ['name_2', 'vorname_2', 'vorwahl_1', 'telefon_1_1', 'mobiltelefon_1', 'email_1']:
- <tr class="${num % 2 and 'hl' or ''}">
- <td class="label">${c.case.get_description(field.name)}
- </td>
- <td>${c.case.get_value(field.name)| F.NA}</td>
- </tr>
- %endif
- % endfor
- </table>
-</%def>
-
-<%def name="renderCustomCaseStateInfo(case)">
- <%
- mapping_1 = c.case.get_formed_item('art_beendigung').getMeta().getValueMapping()
- mapping_2 = c.case.get_formed_item('bei_austritt_ist_der_jugendliche').getMeta().getValueMapping()
- %>
- % if case.getState().isCmFinished():
- <tr class="">
- <td class="label">Art Beendigung</td>
- <td>${mapping_1.get(c.case.get_value('art_beendigung'))}</td>
- </tr>
- <tr class="hl">
- <td class="label">Status bei Beendigung</td>
- <td>${mapping_2.get(c.case.get_value('bei_austritt_ist_der_jugendliche'))}</td>
- </tr>
- % endif
-</%def>
-
-${self.renderMaxSavetimeInfo(c.case)}
-${self.renderCaseStateInfo(c.case)}
-${self.renderCaseInfo(c.case)}
More information about the Mpuls-commits
mailing list