[Mpuls-commits] r5209 - base/trunk/mpulsweb/templates/phase/dialogs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 29 14:26:21 CEST 2011


Author: torsten
Date: 2011-07-29 14:26:21 +0200 (Fri, 29 Jul 2011)
New Revision: 5209

Modified:
   base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako
Log:
Wenn zuvor keine Formularseite augerufen wurde fahren mit der Bearbeitung auf
der Zusammenfassung fort. Fixt Issue2286.


Modified: base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako
===================================================================
--- base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako	2011-07-29 10:04:54 UTC (rev 5208)
+++ base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako	2011-07-29 12:26:21 UTC (rev 5209)
@@ -19,7 +19,11 @@
   <br/>
   <div>
       % if g.mpuls_config.is_enabled('phases', 'changemode') == 1:
-        <a class="button import" href="${h.url_for(controller='/formularpage', action='edit', id=session.get('navigation.selectedpage'))}">${_('Continue editing')}</a>
+        % if session.get('navigation.selectedpage') is not None:
+          <a class="button import" href="${h.url_for(controller='/formularpage', action='edit', id=session.get('navigation.selectedpage'))}">${_('Continue editing')}</a>
+        % else:
+          <a class="button import" href="${h.url_for(controller='/case', action='digest', id=session.get('case').id)}">${_('Continue editing')}</a>
+        % endif
       %endif
       <a class="button import" href="${c.url_ok}">${_('Back to phase overview')}</a>
   </div>



More information about the Mpuls-commits mailing list