Show More
@@ -0,0 +1,27 b'' | |||
|
1 | <span tal:define="name name|field.name; | |
|
2 | true_val true_val|field.widget.true_val; | |
|
3 | css_class css_class|field.widget.css_class; | |
|
4 | style style|field.widget.style; | |
|
5 | oid oid|field.oid; | |
|
6 | help_block help_block|field.widget.help_block|''; | |
|
7 | " | |
|
8 | tal:omit-tag=""> | |
|
9 | ||
|
10 | <div class="checkbox"> | |
|
11 | <input type="checkbox" name="${name}" value="${true_val}" | |
|
12 | readonly="readonly" disabled="disabled" | |
|
13 | id="${oid}" | |
|
14 | tal:attributes="checked cstruct == true_val; | |
|
15 | class css_class; | |
|
16 | style style;" | |
|
17 | /> | |
|
18 | <p tal:condition="help_block" class="help-block">${help_block}</p> | |
|
19 | <label for="${field.oid}"> | |
|
20 | <span tal:condition="hasattr(field, 'schema') and hasattr(field.schema, 'label')" | |
|
21 | tal:replace="field.schema.label" class="checkbox-label" > | |
|
22 | </span> | |
|
23 | ||
|
24 | </label> | |
|
25 | </div> | |
|
26 | ||
|
27 | </span> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now