[Mpuls-commits] r2791 - waska/branches/1.7/waskaweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri May 28 15:08:53 CEST 2010
Author: torsten
Date: 2010-05-28 15:08:50 +0200 (Fri, 28 May 2010)
New Revision: 2791
Modified:
waska/branches/1.7/waskaweb/templates/casemanagement/caselist.mako
Log:
Added icon for validity
Modified: waska/branches/1.7/waskaweb/templates/casemanagement/caselist.mako
===================================================================
--- waska/branches/1.7/waskaweb/templates/casemanagement/caselist.mako 2010-05-28 13:08:23 UTC (rev 2790)
+++ waska/branches/1.7/waskaweb/templates/casemanagement/caselist.mako 2010-05-28 13:08:50 UTC (rev 2791)
@@ -1,4 +1,5 @@
## -*- coding: utf-8 -*-
+
<%! import waskaweb.lib.filters as F %>
<table>
<tr>
@@ -73,6 +74,8 @@
% elif case.getState().phase == 7:
<img src="/images/phase_d_finished.gif" border="0" title="Beratung beendet">
% endif
+ ## Show information based on tags
+ ${self.show_case_validity(case.tags)}
% if h.hasRole(['cm_ka']):
% if str(case.getEditor().id) == str(session.get('USER_AUTHORIZED').id):
<img src="/images/icons/editor_grey.gif" border="0" alt="${_('cm_overview_img_editor')}" title="${_('cm_overview_img_editor')}">
@@ -152,6 +155,8 @@
% elif case.getState().phase == 7:
<img src="/images/phase_d_finished.gif" border="0" title="Beratung beendet">
% endif
+ ## Show information based on tags
+ ${self.show_case_validity(case.tags)}
% if h.hasRole(['cm_ka']):
% if str(case.getEditor().id) == str(session.get('USER_AUTHORIZED').id):
<img src="/images/icons/editor_grey.gif" border="0" alt="${_('cm_overview_img_editor')}" title="${_('cm_overview_img_editor')}">
@@ -200,3 +205,8 @@
</tr>
% endif
</table>
+
+<%def name="show_case_validity(tags)">
+ <% validity = h.get_validity(tags) %>
+ <img src="/images/icons/validity-${validity}-22.png" border="0" alt="${_('Validity')}" title="${_('Validity')}">
+</%def>
More information about the Mpuls-commits
mailing list