[Mpuls-commits] r5894 - in waska/trunk/waskaweb/templates: casemanagement privacy
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Mar 9 11:10:15 CET 2012
Author: ludwig
Date: 2012-03-09 11:10:14 +0100 (Fri, 09 Mar 2012)
New Revision: 5894
Modified:
waska/trunk/waskaweb/templates/casemanagement/new.mako
waska/trunk/waskaweb/templates/privacy/list_statements.mako
Log:
Issue 2738: Add keywords to url call, when they are missing.
e.g. url("/case/new2") is replaced through url(controller="case", action="new2")
This unifies the url calls.
Modified: waska/trunk/waskaweb/templates/casemanagement/new.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/new.mako 2012-03-09 09:44:08 UTC (rev 5893)
+++ waska/trunk/waskaweb/templates/casemanagement/new.mako 2012-03-09 10:10:14 UTC (rev 5894)
@@ -3,12 +3,12 @@
<%def name="buildNavipath()">
${parent.buildNavipath()}
- <li><a href="${h.url('case', action='index')}">${_('Case Management')}</a></li>
- <li><a href="${h.url('case/new2', action='index')}">${_('Create new case')}</a></li>
+ <li><a href="${h.url(controller='case', action='index')}">${_('Case Management')}</a></li>
+ <li><a href="${h.url(controller='case', action='new2')}">${_('Create new case')}</a></li>
</%def>
<div class="waska_form">
- <form id="waska_form" action="${h.url('/case/newAction')}" accept-charset="UTF-8"
+ <form id="waska_form" action="${h.url(controller='case', action='newAction')}" accept-charset="UTF-8"
name="waska_form" method="POST">
<h1>${_('Create new case document')}</h1>
<fieldset>
Modified: waska/trunk/waskaweb/templates/privacy/list_statements.mako
===================================================================
--- waska/trunk/waskaweb/templates/privacy/list_statements.mako 2012-03-09 09:44:08 UTC (rev 5893)
+++ waska/trunk/waskaweb/templates/privacy/list_statements.mako 2012-03-09 10:10:14 UTC (rev 5894)
@@ -4,7 +4,7 @@
<%def name="buildNavipath()">
${parent.buildNavipath()}
<li><a href="${h.url(controller='case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
- <li><a href="${h.url('/privacy/listStatements')}">${_('List statements')}</a></li>
+ <li><a href="${h.url(controller='privacy', action='listStatements')}">${_('List statements')}</a></li>
</%def>
<h1>${_('Avaliable statements')}</h1>
<div class="widget container">
More information about the Mpuls-commits
mailing list