fix page templates: avoid errors with new ZPT version

This commit is contained in:
Helmut Merz 2019-04-28 16:55:49 +02:00
parent 2012181382
commit 7567374e50
2 changed files with 5 additions and 5 deletions

View file

@ -45,17 +45,16 @@
checked python: targetToken == token" /> checked python: targetToken == token" />
</td> </td>
<td> <td>
<a href="#" <a tal:omit-tag="not:nocall:item"
tal:omit-tag="not:nocall:item"
tal:content="title" tal:content="title"
tal:define="baseUrl item/url|string:"
tal:attributes="href tal:attributes="href
string:${item/url|nothing}/@@SelectedManagementView.html"> string:$baseUrl/@@SelectedManagementView.html">
Title Title
</a> </a>
</td> </td>
<td> <td>
<a tal:condition="type" <a tal:condition="type"
href="#"
tal:attributes="href tal:attributes="href
string:${item/typeUrl}/@@SelectedManagementView.html" string:${item/typeUrl}/@@SelectedManagementView.html"
tal:omit-tag="not:item/typeUrl"> tal:omit-tag="not:item/typeUrl">

View file

@ -89,7 +89,8 @@
<li tal:repeat="action stf/getAvailableTransitionsForUser"> <li tal:repeat="action stf/getAvailableTransitionsForUser">
<a i18n:translate="" <a i18n:translate=""
tal:define="baseUrl view/virtualTargetUrl; tal:define="baseUrl view/virtualTargetUrl;
url string:$baseUrl/${stf/formUrl|string:change_state.html}?action=${action/name}&stdef=${stf/statesDefinition}" formName stf/formUrl|string:change_state.html;
url string:$baseUrl/$formName?action=${action/name}&stdef=${stf/statesDefinition}"
tal:attributes="href url; tal:attributes="href url;
onClick string:objectDialog('change_state', '$url');; onClick string:objectDialog('change_state', '$url');;
return false;" return false;"