You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
936 B
18 lines
936 B
7 years ago
|
<span tal:define="name name|field.name;
|
||
|
css_class css_class|field.widget.css_class;
|
||
|
oid oid|field.oid;
|
||
|
mask mask|field.widget.mask;
|
||
|
mask_placeholder mask_placeholder|field.widget.mask_placeholder;
|
||
|
style style|field.widget.style;
|
||
|
was_validated True if field.get_root().error else False;
|
||
|
is_invalid is_invalid|field.error and not field.widget.hidden and not field.typ.__class__.__name__=='Mapping';
|
||
|
is_valid was_validated and not is_invalid;
|
||
|
"
|
||
|
tal:omit-tag="">
|
||
|
<input type="text" name="${name}" value="${cstruct}"
|
||
|
tal:attributes="class string: form-control ${css_class or ''} ${'is-invalid' if is_invalid else ''} ${'is-valid' if is_valid else ''};
|
||
|
style style"
|
||
|
id="${oid}"
|
||
|
readonly="readonly"/>
|
||
|
</span>
|