Ajout des déclarations d'encodage.
[MosaicDocument.git] / default_blocks / block_two_images_template.pt
1 <div tal:define="block nocall:options/block;
2 slots block/getSlotsDic;
3 displayAction options/displayAction;" tal:omit-tag="">
4 <div tal:condition="python:displayAction == 'edit'">
5 <form metal:use-macro="here/block_utils/macros/block_form">
6 <table border="0" cellspacing="4" cellpadding="0"
7 metal:fill-slot="html_block_content">
8 <tr>
9 <td valign="top" width="215" tal:content="structure python:slots['image'].callAction(displayAction)">Image 1</td>
10 <td width="1">&nbsp;</td>
11 <td valign="top" width="215" tal:content="structure python:slots['image2'].callAction(displayAction)">Image 2</td>
12 </tr>
13 </table>
14 </form>
15 </div>
16 <table border="0" cellspacing="4" cellpadding="0"
17 tal:condition="python:displayAction != 'edit'">
18 <tr>
19 <td valign="top" width="215" tal:content="structure python:slots['image'].callAction(displayAction)">Image 1</td>
20 <td width="1">&nbsp;</td>
21 <td valign="top" width="215" tal:content="structure python:slots['image2'].callAction(displayAction)">Image 2</td>
22 </tr>
23 </table>
24 </div>