_finishConsrtuction a disparu => les slots ne sont plus construits. On assure donc...
[MosaicDocument.git] / default_slots / slot_image_form.pt
1 <html tal:omit-tag="">
2
3 <head tal:replace="nothing">
4 <title>slot_image_form</title>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
6 </head>
7
8 <body tal:define="object nocall:options/object;
9 thumbnail object/thumbnail;
10 width thumbnail/width;
11 height thumbnail/height;
12 showSize object/get_size;
13 src string:${object/absolute_url}/thumbnail;
14 title python:object and object.title or ''"
15 i18n:domain="plinn"
16 tal:omit-tag="">
17 <div>
18 <div tal:condition="showSize" tal:omit-tag="">
19 <span i18n:translate="" tal:omit-tag="">width / height:</span>
20 <input type="text" name="textfieldName" size="4" class="mosaic_input"
21 tal:attributes="name python:'.'.join((object.getId(), 'thumb_width')) + ':record:int'; value width;"
22 tal:condition="showSize" /> /
23 <input type="text" name="textfieldName" size="4" class="mosaic_input"
24 tal:attributes="name python:'.'.join((object.getId(), 'thumb_height')) + ':record:int';
25 value height;" /><br/></div>
26 <img tal:attributes="src src;
27 height height;
28 width width;
29 alt python:title or 'place holder for an image'" /><br/>
30 <small i18n:translate="">Title :</small>
31 <input type="text" class="mosaic_input"
32 tal:attributes="name python:'.'.join((object.getId(), 'title')) + ':record:string' ; value title" />
33 <br/>
34 <span i18n:translate="">Change image:</span>
35 <br/>
36 <input class="mosaic_input" type="file"
37 tal:attributes="name python:'.'.join((object.getId(), 'file')) + ':record'" />
38 <input type="hidden" name="noAjax" value="1" />
39 </div>
40 </body>
41
42 </html>