[Mpuls-commits] r1585 - wasko/branches/2.0/waskaweb/templates/evaluation

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 10:01:51 CET 2010


Author: torsten
Date: 2010-02-16 10:01:50 +0100 (Tue, 16 Feb 2010)
New Revision: 1585

Modified:
   wasko/branches/2.0/waskaweb/templates/evaluation/logbook.mako
Log:
* waskaweb/templates/evaluation/logbook.mako: Template for logbook
evaluation is now build dynamically based on configuration.


Modified: wasko/branches/2.0/waskaweb/templates/evaluation/logbook.mako
===================================================================
--- wasko/branches/2.0/waskaweb/templates/evaluation/logbook.mako	2010-02-16 08:57:53 UTC (rev 1584)
+++ wasko/branches/2.0/waskaweb/templates/evaluation/logbook.mako	2010-02-16 09:01:50 UTC (rev 1585)
@@ -5,80 +5,41 @@
     <th class="table_header_h table_width_mid_s num">Anzahl</th>
     <th class="table_header_h table_width_mid_s num">Aufwand (Minuten)</th>
   </tr>
-  ## Unmittelbare Arbeit mit dem Jugendlichen
-  <tr>
-    <td><b>unmittelbare Arbeit mit dem Jugendlichen:</b></td><td class="num"><b>${c.eval_effort['sum_cat1'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_cat1'][1]}</b></td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Gespräch mit dem/der Jugendlichen</td><td class="num">${c.eval_effort['1'][0]}</td><td class="num">${c.eval_effort['1'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Kompetenzfeststellung</td><td class="num">${c.eval_effort['2'][0]}</td><td class="num">${c.eval_effort['2'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Korrespondenz mit dem/der Jugendlichen (Telefonate/Schriftverkehr)</td><td class="num">${c.eval_effort['3'][0]}</td><td class="num">${c.eval_effort['3'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Begleitung des/der Jugendlichen zu externen Stellen</td><td class="num">${c.eval_effort['4'][0]}</td><td class="num">${c.eval_effort['4'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Sonstige Betreuung des Jugendlichen</td><td class="num">${c.eval_effort['5'][0]}</td><td class="num">${c.eval_effort['5'][1]}</td>
-  </tr>
+  % for num, category in enumerate(g.mpuls_config.get('logbook', 'categories')):
+    <tr>
+      <td>
+        <b>${h.escape(category.get('name'))}:</b>
+      </td>
+      <td class="num">
+        <b>${c.eval_effort['sum_cat%s' % num][0]}</b>
+      </td>
+      <td class="num">
+        <b>${c.eval_effort['sum_cat%s' % num][1]}</b>
+      </td>
+    </tr>
+    % for item in category.get('items'):
+      <tr>
+        <td style="padding-left:1em;">
+          ${h.escape(g.mpuls_config.get('logbook', 'descriptions')[0].get(item))}
+        </td>
+        <td class="num">
+          ${c.eval_effort[item][0]}
+        </td>
+        <td class="num">
+          ${c.eval_effort[item][1]}
+        </td>
+      </tr>
+    % endfor
+  % endfor
   <tr class="table_row_v_12">
-    <td><b>Arbeit mit Eltern/Personensorgeberechtigte:</b></td><td class="num"><b>${c.eval_effort['sum_cat2'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_cat2'][1]}</b></td>
+    <td>
+      <b>GESAMT</b>
+    </td>
+    <td class="num">
+      <b>${c.eval_effort['sum_all'][0]}</b>
+    </td>
+    <td class="num">
+      <b>${c.eval_effort['sum_all'][1]}</b>
+    </td>
   </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Gespräch mit Eltern/Personensorgeberechtigten</td><td class="num">${c.eval_effort['6'][0]}</td><td class="num">${c.eval_effort['6'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Korrespondenz mit Eltern/Personensorgeberechtigten (Telefonat/Schriftverkehr)</td><td class="num">${c.eval_effort['7'][0]}</td><td class="num">${c.eval_effort['7'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Sonstige Maßnahmen der Elternarbeit</td><td class="num">${c.eval_effort['8'][0]}</td><td class="num">${c.eval_effort['8'][1]}</td>
-  </tr>
-  <tr>
-    <td><b>Arbeit mit Dritten:</b></td><td class="num"><b>${c.eval_effort['sum_cat3'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_cat3'][1]}</b></td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Gespräch mit schulischen Mitarbeiter/-innen</td><td class="num">${c.eval_effort['9'][0]}</td><td class="num">${c.eval_effort['9'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Korrespondenz mit Schule (Telefonat/Schriftverkehr)</td><td class="num">${c.eval_effort['10'][0]}</td><td class="num">${c.eval_effort['10'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Gespräch mit Mitarbeiter/-innen der Jugendhilfe</td><td class="num">${c.eval_effort['18'][0]}</td><td class="num">${c.eval_effort['18'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Korrespondenz mit Jugendhilfe (Telefonat/Schriftverkehr)</td><td class="num">${c.eval_effort['11'][0]}</td><td class="num">${c.eval_effort['11'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Gespräch mit beteiligten Dritten/Kooperationspartnern</td><td class="num">${c.eval_effort['12'][0]}</td><td class="num">${c.eval_effort['12'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Korrespondenz mit beteiligten Dritten/Kooperationspartnern (Telefonat/Schriftverkehr)</td><td class="num">${c.eval_effort['13'][0]}</td><td class="num">${c.eval_effort['13'][1]}</td>
-  </tr>
-  <tr>
-    <td style="padding-left:1em;">Förder- und Fallkonferenz</td><td class="num">${c.eval_effort['14'][0]}</td><td class="num">${c.eval_effort['14'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td><b>Sonstiges:</b></td><td class="num"><b>${c.eval_effort['sum_cat4'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_cat4'][1]}</b></td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Fahrtwege</td><td class="num">${c.eval_effort['15'][0]}</td><td class="num">${c.eval_effort['15'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Dokumentation WASKO</td><td class="num">${c.eval_effort['16'][0]}</td><td class="num">${c.eval_effort['16'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Teambesprechung</td><td class="num">${c.eval_effort['17'][0]}</td><td class="num">${c.eval_effort['17'][1]}</td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td style="padding-left:1em;">Sonstige Angaben</td><td class="num">${c.eval_effort['-2'][0]}</td><td class="num">${c.eval_effort['-2'][1]}</td>
-  </tr>
-  <tr>
-    <td><b>Keine Angabe:</b></td><td class="num"><b>${c.eval_effort['sum_cat5'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_cat5'][1]}</b></td>
-  </tr>
-  <tr class="table_row_v_12">
-    <td><b>GESAMT</b></td><td class="num"><b>${c.eval_effort['sum_all'][0]}</b></td><td class="num"><b>${c.eval_effort['sum_all'][1]}</b></td>
-  </tr>
 </table>



More information about the Mpuls-commits mailing list