[Mpuls-commits] r1727 - wasko/branches/2.0/jmdweb/templates/phase
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Feb 24 11:29:24 CET 2010
Author: torsten
Date: 2010-02-24 11:29:24 +0100 (Wed, 24 Feb 2010)
New Revision: 1727
Modified:
wasko/branches/2.0/jmdweb/templates/phase/phase.mako
Log:
* jmdweb/templates/phase/phase.mako: Adopted function names and added
submitbuttons
Modified: wasko/branches/2.0/jmdweb/templates/phase/phase.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/phase/phase.mako 2010-02-24 10:21:19 UTC (rev 1726)
+++ wasko/branches/2.0/jmdweb/templates/phase/phase.mako 2010-02-24 10:29:24 UTC (rev 1727)
@@ -30,38 +30,38 @@
</tr>
% for num, phase in enumerate(c.phases):
<% p1, p2 = phase.getStart(), phase.getEnd() %>
- <tr>
- <td rowspan="2" class="cm_phase_state ${(num%2) and 'table_row_h' or ''}">
+ <tr class="${(num%2) and 'hl' or ''}">
+ <td rowspan="2" class="cm_phase_state">
${phase.getDescription()}
</td>
- % if p1.isOk():
- <td class="cm_phase_state_valid cm_phase_state ${(num%2) and 'table_row_h' or ''}"></td>
+ % if p1.is_ok():
+ <td class="cm_phase_state_valid cm_phase_state"></td>
% else:
- <td class="cm_phase_state_invalid cm_phase_state ${(num%2) and 'table_row_h' or ''}"></td>
+ <td class="cm_phase_state_invalid cm_phase_state"></td>
% endif
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">${p1.getLinks()}</td>
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">${p1.getTime()}</td>
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">
- % if p1.isOk():
- Action ok
+ <td class="cm_phase_state">${p1.getLinks()}</td>
+ <td class="cm_phase_state">${p1.getTime()}</td>
+ <td class="cm_phase_state">
+ % if p1.is_ok():
+ <input type="submit" name="phase_${p1.id}" value="${_('Start')}">
% else:
- Action nok
+ <input type="submit" name="phase_${p1.id}" value="${_('Start')}" disabled="disabled">
% endif
</td>
</tr>
- <tr>
- % if p2.isOk():
- <td class="cm_phase_state_valid cm_phase_state ${(num%2) and 'table_row_h' or ''}"></td>
+ <tr class="${(num%2) and 'hl' or ''}">
+ % if p2.is_ok():
+ <td class="cm_phase_state_valid cm_phase_state}"></td>
% else:
- <td class="cm_phase_state_invalid cm_phase_state ${(num%2) and 'table_row_h' or ''}"></td>
+ <td class="cm_phase_state_invalid cm_phase_state"></td>
% endif
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">${p2.getLinks()}</td>
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">${p2.getTime()}</td>
- <td class=" cm_phase_state ${(num%2) and 'table_row_h' or ''}">
- % if p2.isOk():
- Action ok
+ <td class="cm_phase_state">${p2.getLinks()}</td>
+ <td class="cm_phase_state">${p2.getTime()}</td>
+ <td class="cm_phase_state">
+ % if p2.is_ok():
+ <input type="submit" name="phase_${p2.id}" value="${_('Finish')}">
% else:
- Action nok
+ <input type="submit" name="phase_${p2.id}" value="${_('Finish')}" disabled="disabled">
% endif
</td>
</tr>
More information about the Mpuls-commits
mailing list