+++ /dev/null
-<html xmlns="http://www.w3.org/1999/xhtml" tal:omit-tag="">
-
- <head tal:replace="nothing">
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>tree_block_template</title>
- </head>
-
- <body tal:define="here nocall:options/here;
- block nocall:options/block;
- slots block/getSlotsDic;
- displayAction options/displayAction;
- boxTitle nocall:slots/boxTitle;
- categories nocall:slots/categories;" tal:omit-tag="" i18n:domain="plinn">
- <div tal:condition="python:displayAction=='edit'">
- <h3 i18n:translate="">Action box settings</h3>
- <form action="." metal:use-macro="here/block_utils/macros/block_form">
- <table metal:fill-slot="html_block_content">
- <tr><td i18n:translate="">Box title:</td></tr>
- <tr>
- <td tal:content="structure python:boxTitle.callAction(displayAction)">title slot here</td>
- </tr>
- <tr><td i18n:translate="">Categories:</td></tr>
- <tr>
- <td tal:content="structure python:categories.callAction(displayAction)">categories slot here</td>
- </tr>
- </table>
- </form>
- </div>
- <div tal:condition="python:displayAction=='view'">
-<table cellspacing="0"
- tal:define="allActions python:here.portal_actions.listFilteredActionsFor( here );
- filteredActionsList python:[];
- dummy python:[ filteredActionsList.extend(l) for l in [ allActions.get(key, []) for key in categories.text or allActions.keys() ] ]"
- tal:condition="filteredActionsList"
- tal:attributes="class python:'_'.join(categories.text)">
- <tr>
- <th tal:content="structure python:boxTitle.callAction(displayAction)">
- Box title
- </th>
- </tr>
- <tr>
- <td>
- <ul>
- <li tal:repeat="action filteredActionsList"><a href="." tal:content="action/title" tal:attributes="href action/url" i18n:translate="">action</a></li>
- </ul>
- </td>
- </tr>
- </table>
- </div>
-
-
- </body>
-
-</html>
\ No newline at end of file