[Mpuls-commits] r2175 - wasko/branches/2.0/jmdweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 25 12:55:39 CET 2010


Author: torsten
Date: 2010-03-25 12:55:39 +0100 (Thu, 25 Mar 2010)
New Revision: 2175

Removed:
   wasko/branches/2.0/jmdweb/templates/casemanagement/phase.mako
Log:
Deleted old templates for phases.


Deleted: wasko/branches/2.0/jmdweb/templates/casemanagement/phase.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/casemanagement/phase.mako	2010-03-25 11:52:53 UTC (rev 2174)
+++ wasko/branches/2.0/jmdweb/templates/casemanagement/phase.mako	2010-03-25 11:55:39 UTC (rev 2175)
@@ -1,124 +0,0 @@
-## -*- coding: utf-8 -*-
-<%inherit file="main.mako" />
-<%def name="buildNavipath()">
-  ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
-  <li><a href="/case/select/${session.get('case').id}">${_('cm_np_select')}</a></li>
-  <li><a href="#">${_('case_cm_phase')}</a></li>
-</%def>
-
-% if c.global_warnings:
-<div class="form_errors">${c.global_warnings}</div>
-% endif
-
-<div class="waska_form">
-<h2>${_('case_cm_phase')}</h2>
-<form method="POST" action="${h.url_for(controller='/case', action='setPhaseAction')}">
-  <input type="hidden" name="case_id" value="${session.get('case').id}">
-  <table id="cmphases">
-    <% is_allowed = h.hasRole(('cm_ka',)) %>
-    <tr>
-      <th class="table_header_h" width="18%">${_('cm_info_phase')}</th>
-      <th class="table_header_h" width="3%">&nbsp;</th>
-      <th class="table_header_h" width="44%">${_('case_cm_phase_required_fields')}</th>
-      <th class="table_header_h" width="15%">${_('case_cm_phase_time')}</th>
-      <th style="text-align:right" class="table_header_h" width="20%">
-      % if is_allowed:
-      ${_('case_cm_phase_change')}
-      % endif
-      </th>
-    </tr>
-    % for count, phase_pair in enumerate(c.phase_pairs):
-    <% p1, p2 = phase_pair.getStart(), phase_pair.getEnd()  %>
-    <tr>
-      <td rowspan="2" class="cm_phase_state ${(count%2) and 'table_row_h' or ''}">
-        ${phase_pair.getDescription()}
-        % if p1.isRunning():
-            <br>(läuft)
-        % elif c.current_phase.hasPredecessor(p1):
-            <br>(beendet)
-        % endif
-      </td>
-      % if p1.isComplete():
-      <td class="cm_phase_state_valid"></td>
-      % else:
-      <td class="cm_phase_state_invalid"></td>
-      % endif
-      <td class="required_field">
-        ${p1.getLinks()}
-      </td>
-      <td>${h.dd_mm_YYYY(p1.getTime(), '-/-')}</td>
-      <td style="text-align:right">
-        % if is_allowed:
-            % if (p1.isRecursiveComplete() and not p1.isRunning() and (p1.isNeighbor(c.current_phase) or c.current_phase.hasPredecessor(p1))):
-              % if c.current_phase.phase == 3:
-                % if c.nachbetreuung_geplant or p1.phase <= 3:
-                  <input type="submit" value="Start" name="${p1.getLabel()|h}">
-                % else:
-                  <input type="submit" value="Start" name="${p1.getLabel()|h}" disabled="disabled">
-                % endif
-              % else:
-                  <input type="submit" value="Start" name="${p1.getLabel()|h}">
-              % endif
-            % else:
-                <input type="submit" value="Start" name="${p1.getLabel()|h}" disabled="disabled">
-            % endif
-        % endif
-      </td>
-    </tr>
-    <tr>
-      % if p2.isComplete():
-          <td class="table_row_h cm_phase_state_valid"></td>
-      % else:
-          <td class="table_row_h cm_phase_state_invalid"></td>
-      % endif
-      <td class="table_row_h required_field">
-        ${p2.getLinks()}
-      </td>
-      <td class="table_row_h">${h.dd_mm_YYYY(p2.getTime(), '-/-')}</td>
-      <td style="text-align:right" class="table_row_h">
-        % if is_allowed:
-            % if (p2.isRecursiveComplete() and not p2.isRunning() and p2.isNeighbor(c.current_phase) and not c.current_phase.hasPredecessor(p2)):
-                <input type="submit" value="Ende" name="${p2.getLabel()|h}">
-            % else:
-                <input type="submit" value="Ende" name="${p2.getLabel()|h}" 
-                  disabled="disabled">
-            % endif
-        % endif
-      </td>
-    </tr>
-    % endfor
-  </table>
-</form>
-</div>
-##
-## DAUER DER PHASEN
-##
-<div>
-  <h2>Dauer der Phasen</h2>
-  <table>
-    <tr>
-      <th class="table_header_h">Phase</th>
-      <th style="text-align:right" class="table_header_h">Dauer in Wochen</th>
-    </tr>
-    <% total = None %>
-    % for phase_pair in c.phase_pairs:
-    <tr>
-      <td>${phase_pair.getDescription()}</td>
-      <td style="text-align:right">
-      <% 
-        t = phase_pair.getDuration();
-        if t: total = total and (total + t) or t
-      %>
-      ${h.timedelta_in_weeks(t, '-/-')}
-      </td>
-    </tr>
-    % endfor
-    <tr>
-      <td style="border-top:1px solid"><strong>Gesamt</strong></td>
-      <td style="border-top:1px solid; text-align:right">
-        <strong>${h.timedelta_in_weeks(total, '-/-')}</strong>
-      </td>
-    </tr>
-  </table>
-</div>



More information about the Mpuls-commits mailing list