[Mpuls-commits] r2899 - base/trunk/mpulsweb/templates/casemanagement/dialogs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 7 09:56:51 CEST 2010


Author: torsten
Date: 2010-06-07 09:56:51 +0200 (Mon, 07 Jun 2010)
New Revision: 2899

Added:
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_copy.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_copy.mako
Log:
Added new dialogs to copy a case


Added: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_copy.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_copy.mako	2010-06-07 07:56:05 UTC (rev 2898)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_copy.mako	2010-06-07 07:56:51 UTC (rev 2899)
@@ -0,0 +1,16 @@
+## -*- coding: utf-8 -*- 
+<%inherit file="/casemanagement/main.mako" />
+<%
+  case = session.get('case')
+%>
+<%def name="buildNavipath()">
+  ${parent.buildNavipath()}
+  %if case:
+    <li><a href="${h.url_for(controller='/case', action='select',
+                             id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  %else:
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
+  %endif
+  <li><a href="#">${_('cm_np_copy')}</a></li>
+</%def>
+<%include file="/dialogs/confirm.mako" />

Added: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_copy.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_copy.mako	2010-06-07 07:56:05 UTC (rev 2898)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_copy.mako	2010-06-07 07:56:51 UTC (rev 2899)
@@ -0,0 +1,15 @@
+## -*- coding: utf-8 -*- 
+<%inherit file="/casemanagement/main.mako" />
+<%
+  case = session.get('case')
+%>
+<%def name="buildNavipath()">
+  ${parent.buildNavipath()}
+  %if case:
+    <li><a href="${h.url_for(controller='/case', action='select', id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  %else:
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
+  %endif
+  <li><a href="#">${_('cm_np_copy')}</a></li>
+</%def>
+<%include file="/dialogs/success.mako" />



More information about the Mpuls-commits mailing list