4 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
5 <title>block_canvas</title>
8 <body tal:define="baseBlock nocall:block;
9 tableInfo baseBlock/getBlocksTable;
12 lines tableInfo/lines;
13 allowedBlocks python:(displayAction != 'edit' and [(),] or [baseBlock.getAllowedBlocks()])[0];"
14 tal:omit-tag="" i18n:domain="plinn" metal:define-macro="canvas">
17 <tr tal:condition="python:not rows and displayAction == 'edit'">
19 <form metal:use-macro="here/block_utils/macros/add_block_form">Formulaire de création du premier block</form>
23 <tr tal:repeat="line lines">
24 <span tal:repeat="blockInfo line" tal:omit-tag="">
25 <td valign="top" tal:condition="python:blockInfo.get('rowspan', 1) > 0"
26 tal:attributes="rowspan python:blockInfo.get('rowspan', 1)"
27 tal:define="block blockInfo/block">
28 <div tal:condition="block" tal:omit-tag="">
30 <div tal:condition="python:displayAction == 'edit'" tal:omit-tag="">
31 <form metal:use-macro="here/block_utils/macros/add_block_form">Formulaire de création d'un block au dessus
32 <span metal:fill-slot="additional_fields" tal:omit-tag="">
33 <input type="hidden" name="xpos:int" value="0" tal:attributes="value blockInfo/col" />
34 <input type="hidden" name="beforeBlock" value="hiddenValue" tal:attributes="value block/getId|nothing" />
39 <a name="anchor" tal:attributes="name block/getId"></a>
40 <div tal:condition="python:displayAction == 'edit'" tal:omit-tag="">
41 <span metal:use-macro="here/block_utils/macros/move_table">tableau des boutons de délacement</span>
43 <div tal:replace="structure python:block.callTemplate(displayAction=displayAction, baseBlock=baseBlock, blockInfo=blockInfo, here=here)">
44 <h2>Rendu HTML du block</h2>
46 <div tal:condition="python:displayAction == 'edit' and blockInfo.get('lastOne')"
48 <form metal:use-macro="here/block_utils/macros/add_block_form">Formulaire de création d'un block au dessus
49 <span tal:omit-tag="" metal:fill-slot="additional_fields">
50 <input type="hidden" name="xpos:int" value="0" tal:attributes="value blockInfo/col" />
51 <input type="hidden" name="afterBlock" value="hiddenValue" tal:attributes="value block/getId|nothing" />
57 <div tal:condition="python:not block and displayAction == 'edit'">
58 <form metal:use-macro="here/block_utils/macros/add_block_form">Formulaire de création du premier block
59 <span tal:omit-tag="" metal:fill-slot="additional_fields">
60 <input type="hidden" name="xpos:int" value="0" tal:attributes="value blockInfo/col" />