[Mpuls-commits] r2068 - wasko/branches/2.0/mpulsweb/templates/home

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 23 11:07:59 CET 2010


Author: torsten
Date: 2010-03-23 11:07:59 +0100 (Tue, 23 Mar 2010)
New Revision: 2068

Added:
   wasko/branches/2.0/mpulsweb/templates/home/caseappointmentlist.mako
   wasko/branches/2.0/mpulsweb/templates/home/remindlist.mako
Modified:
   wasko/branches/2.0/mpulsweb/templates/home/home.mako
Log:
Added new templates for caseappointments and reminders.


Added: wasko/branches/2.0/mpulsweb/templates/home/caseappointmentlist.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/home/caseappointmentlist.mako	2010-03-23 10:06:59 UTC (rev 2067)
+++ wasko/branches/2.0/mpulsweb/templates/home/caseappointmentlist.mako	2010-03-23 10:07:59 UTC (rev 2068)
@@ -0,0 +1,15 @@
+<%inherit file="/appointments/overview_body.mako" />
+<%def name="showAppointmentActions(appointment)">
+  %if appointment.case_id:
+    % if appointment.type == 0:
+      <a href="${h.url_for(controller='/caseappointment', action='show', id=appointment.id, confirmed=0)}">
+        <img src="/images/icons/view_red.gif" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+    % else:
+      <a href="${h.url_for(controller='/case', action='select', id=appointment.case_id, confirmed=0)}">
+        <img src="/images/icons/view_red.gif" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+    % endif
+  % else:
+    <a href="${h.url_for(controller='/caseappointment', action='show', id=appointment.id)}">
+      <img src="/images/icons/view_red.gif" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+  % endif
+</%def>

Modified: wasko/branches/2.0/mpulsweb/templates/home/home.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/home/home.mako	2010-03-23 10:06:59 UTC (rev 2067)
+++ wasko/branches/2.0/mpulsweb/templates/home/home.mako	2010-03-23 10:07:59 UTC (rev 2068)
@@ -36,7 +36,18 @@
     % endif
   % endif
   
-  ## APPOINTMENTS 
+  ## APPOINTMENTS
+  ## Reminders
+  % if g.mpuls_config.is_enabled('case-module', 'reminders'):
+    <h2>Automatisierte Wiedervorlagen</h2>
+    <%include file="/home/remindlist.mako"/>
+  % endif 
+  ## Case 
+  % if g.mpuls_config.is_enabled('case-module', 'appointments'):
+    <h2>Eigene Termine</h2>
+    <%include file="/home/caseappointmentlist.mako"/>
+  % endif
+  ## Global
   % if g.mpuls_config.is_enabled('module', 'appointments'):
     <h2>Einrichtungsweite Termine</h2>
     <%include file="/home/globalappointmentlist.mako"/>

Added: wasko/branches/2.0/mpulsweb/templates/home/remindlist.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/home/remindlist.mako	2010-03-23 10:06:59 UTC (rev 2067)
+++ wasko/branches/2.0/mpulsweb/templates/home/remindlist.mako	2010-03-23 10:07:59 UTC (rev 2068)
@@ -0,0 +1,9 @@
+<%inherit file="/appointments/remindlist_body.mako" />
+<%def name="showAppointmentActions(appointment)">
+  <a href="${h.url_for(controller='/case', action='select', id=appointment.case_id, confirmed=0)}">
+    <img src="/images/icons/view_red.gif" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+</%def>
+<%def name="showKeepActiveActions(appointment)">
+  <a href="${h.url_for(controller='/case', action='keepActive', id=appointment.case_id, confirmed=0)}">
+    <img src="/images/icons/recover_red.gif" border="0" alt="${_('cm_overview_a_keepactive')}" title="${_('cm_overview_a_keepactive')}"></a>
+</%def>



More information about the Mpuls-commits mailing list