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.
22 lines
877 B
22 lines
877 B
<span tal:define="name name|field.name; |
|
css_class css_class|field.widget.css_class; |
|
oid oid|field.oid; |
|
mask mask|field.widget.mask|None; |
|
mask_placeholder mask_placeholder|field.widget.mask_placeholder|'_'; |
|
style style|field.widget.style; |
|
" |
|
tal:omit-tag=""> |
|
<input type="text" name="${name}" value="${cstruct}" |
|
tal:attributes="class string: form-control ${css_class or ''} ${'is-invalid' if field.error else ''} |
|
style style" |
|
id="${oid}" |
|
readonly="readonly"/> |
|
<script tal:condition="mask" type="text/javascript"> |
|
deform.addCallback( |
|
'${oid}', |
|
function (oid) { |
|
$("#" + oid).mask("${mask}", |
|
{placeholder:"${mask_placeholder}"}); |
|
}); |
|
</script> |
|
</span>
|
|
|