[Mpuls-commits] r5874 - in base/trunk/mpulsweb/templates/logbook: . dialogs

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 8 11:08:59 CET 2012


Author: ludwig
Date: 2012-03-08 11:08:59 +0100 (Thu, 08 Mar 2012)
New Revision: 5874

Modified:
   base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/edit.mako
   base/trunk/mpulsweb/templates/logbook/new.mako
   base/trunk/mpulsweb/templates/logbook/overview.mako
   base/trunk/mpulsweb/templates/logbook/overview_print.mako
   base/trunk/mpulsweb/templates/logbook/show.mako
Log:
Issue 2738: Replace url_for (templates/logbook)


Modified: base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('Delete entry')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('New entry')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('Delete entry failed')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('Save entry failed')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('View entry failed')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('New entry')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('Delete entry succeeded')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+        <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
 	<li><a href="#">${_('Save entry')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/edit.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/edit.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -8,8 +8,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
+  <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(controller='logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
   <li><a href="#"></a>${_('Edit entry')}</li>
 </%def>
 <div id="content_header_small">
@@ -19,7 +19,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="${h.url_for(controller='/logbook', action='show', id=c.entry.id)}">${_('Back to: View entry')}</a></li>
+        <li><a href="${h.url(controller='logbook', action='show', id=c.entry.id)}">${_('Back to: View entry')}</a></li>
       </ul>
     </div>
   </div>
@@ -27,7 +27,7 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="appointment">
   <div id="waska_form">
-    <form action="${h.url_for(controller='/logbook', action='editAction')}"
+    <form action="${h.url(controller='logbook', action='editAction')}"
           accept-charset="UTF-8" method="POST">
       <%include file="../logbook/edit_body.mako" />
       <input type="hidden" name="id">

Modified: base/trunk/mpulsweb/templates/logbook/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/new.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/new.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -8,8 +8,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
+  <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(controller='logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
   <li><a href="#"></a>${_('New entry')}</li>
 </%def>
 <div id="content_header_small">
@@ -19,7 +19,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Back to: Logbook')}</a></li>
+        <li><a href="${h.url(controller='logbook', action='index', id=session.get('case').id)}">${_('Back to: Logbook')}</a></li>
       </ul>
     </div>
   </div>
@@ -27,7 +27,7 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="appointment">
 <div id="waska_form">
-  <form action="${h.url_for(controller='/logbook', action='newAction')}"
+  <form action="${h.url(controller='logbook', action='newAction')}"
         accept-charset="UTF-8" method="POST">
   <%include file="../logbook/edit_body.mako" />
   </form>

Modified: base/trunk/mpulsweb/templates/logbook/overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/overview.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/overview.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -3,8 +3,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
+  <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(controller='logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
 </%def>
 
 <div id="content_header_small">
@@ -16,9 +16,9 @@
     <div class="actions">
       <ul>
         % if session.get('case').getState().getState() == 1:
-          <li><a href="${h.url_for(controller='/logbook', action='new', id=session.get('case').id)}">${_('New entry')}</a></li>
+          <li><a href="${h.url(controller='logbook', action='new', id=session.get('case').id)}">${_('New entry')}</a></li>
         % endif
-        <li><a href="${h.url_for(controller='/logbook', action='printout', id=session.get('case').id)}" target="_blank">${_('Print view')}</a></li>
+        <li><a href="${h.url(controller='logbook', action='printout', id=session.get('case').id)}" target="_blank">${_('Print view')}</a></li>
       </ul>
     </div>
   </div>
@@ -27,73 +27,73 @@
 <table class="appointment">
   <tr>
     <th class="title table_header_h">${_('Date')}
-      <a href="${h.url_for(controller='/logbook', action='index', 
+      <a href="${h.url(controller='logbook', action='index', 
                            id=session.get('case').id, sort_field='datum', 
                            sort_order='asc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_asc.png')}"
+               src="${h.url('/images/icons/sort_asc.png')}"
                alt=""
                width="10"
                height="9"></a>
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='datum', 
                            sort_order='desc')}"
          ><img class="sorticon" 
-               src="${h.url_for('/images/icons/sort_desc.png')}"
+               src="${h.url('/images/icons/sort_desc.png')}"
                alt=""
                width="10"
                height="9"></a>
     </th>
     <th class="title table_header_h">${_('Editor')}
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='bearbeiter',
                            sort_order='asc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_asc.png')}"
+               src="${h.url('/images/icons/sort_asc.png')}"
                alt=""
                width="10"
                height="9"></a>
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='bearbeiter', 
                            sort_order='desc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_desc.png')}"
+               src="${h.url('/images/icons/sort_desc.png')}"
                alt=""
                width="10"
                height="9"></a>
     </th>
     <th class="title table_header_h">${_('Type')}
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='art',
                            sort_order='asc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_asc.png')}"
+               src="${h.url('/images/icons/sort_asc.png')}"
                alt=""
                width="10"
                height="9"></a>
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='art',
                            sort_order='desc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_desc.png')}"
+               src="${h.url('/images/icons/sort_desc.png')}"
                alt=""
                width="10"
                height="9"></a>
     </th>
     <th class="title table_header_h">${_('Duration (min)')}
-      <a href="${h.url_for(controller='/logbook', action='index',
+      <a href="${h.url(controller='logbook', action='index',
                            id=session.get('case').id, sort_field='dauer',
                            sort_order='asc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_asc.png')}"
+               src="${h.url('/images/icons/sort_asc.png')}"
                alt=""
                width="10"
                height="9"></a>
-      <a href="${h.url_for(controller='/logbook', action='index', 
+      <a href="${h.url(controller='logbook', action='index', 
                            id=session.get('case').id, sort_field='dauer',
                            sort_order='desc')}"
          ><img class="sorticon"
-               src="${h.url_for('/images/icons/sort_desc.png')}"
+               src="${h.url('/images/icons/sort_desc.png')}"
                alt=""
                width="10"
                height="9"></a>
@@ -108,15 +108,15 @@
     <td class="title">${entry.getKind()}</td>
     <td class="centered title ">${entry.getDuration()}</td>
     <td class="action">
-        <a href="${h.url_for(controller='/logbook', action='show', id=entry.id)}">
-            <img src="${h.url_for('/images/icons/open_active_22.png')}"
+        <a href="${h.url(controller='logbook', action='show', id=entry.id)}">
+            <img src="${h.url('/images/icons/open_active_22.png')}"
                 alt="Eintrag ansehen"
                 title="Eintrag ansehen"
                 width="22"
                 height="22"></a>
         % if h.hasRole(['cm']) and entry.getKindAsInt() != 0 and session.get('case').getState().getState() == 1:
-        <a href="${h.url_for(controller='/logbook', action='delete', id=entry.id, confirmed=0)}">
-            <img src="${h.url_for('/images/icons/delete_active_22.png')}"
+        <a href="${h.url(controller='logbook', action='delete', id=entry.id, confirmed=0)}">
+            <img src="${h.url('/images/icons/delete_active_22.png')}"
             alt="${_('delete')}"
             title="${_('delete')}"
             width="22"

Modified: base/trunk/mpulsweb/templates/logbook/overview_print.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/overview_print.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/overview_print.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
+  <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(controller='case', action='logbook', id=session.get('case').id)}">${_('Logbook')}</a></li>
   <li><a href="#"></a>${_('Entries')}</a></li>
 </%def>
 <div id="content_header_small">
@@ -15,7 +15,7 @@
     <div class="actions">
       <ul>
         <li>
-          <a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">${_('Back to: Logbook')}</a>
+          <a href="${h.url(controller='case', action='logbook', id=session.get('case').id)}">${_('Back to: Logbook')}</a>
         </li>
       </ul>
     </div>

Modified: base/trunk/mpulsweb/templates/logbook/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/show.mako	2012-03-08 10:02:00 UTC (rev 5873)
+++ base/trunk/mpulsweb/templates/logbook/show.mako	2012-03-08 10:08:59 UTC (rev 5874)
@@ -2,8 +2,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
+  <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(controller='logbook', action='index', id=session.get('case').id)}">${_('Logbook')}</a></li>
   <li><a href="#"></a>${_('Logbook entry')}</a></li>
 </%def>
 <div id="content_header_small">
@@ -15,13 +15,13 @@
       <ul>
         % if h.hasRole(['cm']) and c.entry.getKindAsInt() != 0 and session.get('case').getState().getState() == 1:
         <li>
-          <a href="${h.url_for(controller='/logbook', action='edit', id=c.entry.id)}">
+          <a href="${h.url(controller='logbook', action='edit', id=c.entry.id)}">
             ${_('Edit entry')}
           </a>
         </li>
         % endif
         <li>
-          <a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">${_('Back to: Logbook')}</a>
+          <a href="${h.url(controller='logbook', action='index', id=session.get('case').id)}">${_('Back to: Logbook')}</a>
         </li>
       </ul>
     </div>



More information about the Mpuls-commits mailing list