_finishConsrtuction a disparu => les slots ne sont plus construits. On assure donc...
[MosaicDocument.git] / default_blocks / block_text_template.pt
1 <div tal:define="block nocall:options/block;
2 slots block/getSlotsDic;
3 displayAction options/displayAction;" tal:omit-tag="">
4
5 <div tal:condition="python:displayAction == 'edit'">
6 <form metal:use-macro="here/block_utils/macros/block_form">
7 <table border="0" cellspacing="4" cellpadding="0" metal:fill-slot="html_block_content">
8 <tr>
9 <td valign="top" tal:content="structure python:slots['text'].callAction(displayAction)">Text</td>
10 </tr>
11 </table>
12 </form>
13 </div>
14 <table border="0" cellspacing="4" cellpadding="0" tal:condition="python:displayAction != 'edit'">
15 <tr>
16 <td valign="top" tal:content="structure python:slots['text'].callAction(displayAction)">Text</td>
17 </tr>
18 </table>
19 </div>