[Mpuls-commits] r3860 - base/trunk/mpulsweb/templates/evaluation

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 1 19:26:45 CEST 2010


Author: torsten
Date: 2010-10-01 19:26:45 +0200 (Fri, 01 Oct 2010)
New Revision: 3860

Modified:
   base/trunk/mpulsweb/templates/evaluation/evaluate.mako
Log:
* mpulsweb/templates/evaluation/evaluate.mako: Issue1253: Uses
	phaselist from phasemodel for rendering the phases instead of loading
	directly from mpuls-config.


Modified: base/trunk/mpulsweb/templates/evaluation/evaluate.mako
===================================================================
--- base/trunk/mpulsweb/templates/evaluation/evaluate.mako	2010-10-01 17:25:20 UTC (rev 3859)
+++ base/trunk/mpulsweb/templates/evaluation/evaluate.mako	2010-10-01 17:26:45 UTC (rev 3860)
@@ -33,16 +33,11 @@
   <tr>
     <td class="label">Phase</td>
     <td>
-      <input type="checkbox" name="phase" id="phase_x" value="-1" 
-             ${adele_disabled}>
-      <label for="phase_x">
-        ${_('Unknown')}<br>
-      </label>
-      % for n,p in enumerate(g.mpuls_config.get('phases', 'phases')):
-        <input type="checkbox" name="phase" id="phase_${n}" value="${p}" 
+      % for n,p in enumerate(c.phases):
+        <input type="checkbox" name="phase" id="phase_${n}" value="${p.id}" 
                ${adele_disabled}>
           <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