Problèmes d'acquisition contournés.
[MosaicDocument.git] / skins / block_canvas.pt
1 <html>
2
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
5 <title>block_canvas</title>
6 </head>
7
8 <body tal:define="baseBlock nocall:block;
9 tableInfo baseBlock/getBlocksTable;
10 rows tableInfo/rows;
11 cols tableInfo/cols;
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">
15 <table width="100%">
16
17 <tr tal:condition="python:not rows and displayAction == 'edit'">
18 <td>
19 <form metal:use-macro="here/block_utils/macros/add_block_form">Formulaire de création du premier block</form>
20 </td>
21 </tr>
22
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="">
29
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" />
35 </span>
36 </form>
37 </div>
38
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>
42 </div>
43 <div tal:replace="structure python:block.callTemplate(displayAction=displayAction, baseBlock=baseBlock, blockInfo=blockInfo, here=here)">
44 <h2>Rendu HTML du block</h2>
45 </div>
46 <div tal:condition="python:displayAction == 'edit' and blockInfo.get('lastOne')"
47 tal:omit-tag="">
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" />
52 </span>
53 </form>
54 </div>
55 </div>
56
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" />
61 </span>
62 </form>
63 </div>
64
65 </td>
66 </span>
67 </tr>
68 </table>
69 </body>
70
71 </html>