[Mpuls-commits] r3842 - base/trunk/mpulsweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Oct 1 12:15:18 CEST 2010
Author: torsten
Date: 2010-10-01 12:15:17 +0200 (Fri, 01 Oct 2010)
New Revision: 3842
Modified:
base/trunk/mpulsweb/templates/casemanagement/search.mako
Log:
* mpulsweb/templates/casemanagement/search.mako: Uses phaselist from
phasemodel for rendering the phases instead of loading directly from
mpuls-config.
Modified: base/trunk/mpulsweb/templates/casemanagement/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/search.mako 2010-10-01 10:14:24 UTC (rev 3841)
+++ base/trunk/mpulsweb/templates/casemanagement/search.mako 2010-10-01 10:15:17 UTC (rev 3842)
@@ -76,12 +76,10 @@
<tr style="${not c.extended_search and 'display:none' or ''}">
<td class="label">${_('Phase')}</td>
<td>
- <input type="checkbox" name="phase" id="phase_unknown" value="-1">
- <label for="phase_unknown">${_('Unknown')}</label><br>
- % for n,p in enumerate(g.mpuls_config.get('phases', 'phases')):
+ % for n,p in enumerate(c.phases):
<input type="checkbox" name="phase" id="phase_${n}" value="${p}">
<label for="phase_${n}">
- ${g.mpuls_config.get('phases', 'description')[0].get(p)}<br>
+ ${p.getDescription()}<br>
</label>
% endfor
</td>
More information about the Mpuls-commits
mailing list