<span tal:omit-tag="">
    <input type="${field.widget.input_type or 'text'}" name="${field.name}" value="${cstruct}" size="${field.widget.size}"
           class="${field.widget.css_class} ${'is-invalid' if field.error else ''}" placeholder="${field.widget.placeholder}"
           id="${field.oid}">
    <script tal:condition="field.widget.mask" type="text/javascript">
      reform.addCallback(
         '${field.oid}',
         function (oid) {
            $("#" + oid).mask("${field.widget.mask}", 
                              {placeholder:"${field.widget.mask_placeholder}"});
         });
    </script>
</span>
