_finishConsrtuction a disparu => les slots ne sont plus construits. On assure donc...
[MosaicDocument.git] / default_slots / slot_string_form.pt
1 <html tal:omit-tag="">
2 <head tal:replace="nothing">
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
4 <title>slot_string_form</title>
5 </head>
6 <body tal:define="object nocall:options/object;
7 size object/size;
8 castOperator object/castOperator;
9 choices object/choices;
10 text python:(castOperator == 'tokens' and [' '.join(object.text),] or [object.text,])[0];"
11 tal:omit-tag="">
12 <input type="text" class="mosaic_input"
13 tal:condition="not:choices"
14 tal:attributes="name python:'.'.join((object.getId(), 'text')) + ':'.join(('', 'record', castOperator)) ;
15 size size;
16 value text;" />
17
18 <select tal:condition="choices" class="mosaic_input"
19 tal:attributes="name python:'.'.join((object.getId(), 'text')) + ':'.join(('', 'record', castOperator)) ; ">
20 <option tal:attributes="value choice ;
21 selected python:str(choice) == str(text)"
22 tal:content="choice" tal:repeat="choice choices">Choice</option>
23 </select>
24 </body>
25 </html>