Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (29 sloc) 1.178 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<input type="hidden" name="__start__" value="${field.name}:mapping"/>
<ul>
  <li>
    <label for="${field.oid}">${subject}</label>
    <input type="text" name="${field.name}" value="${cstruct}"
           tal:attributes="size field.widget.size;
class field.widget.css_class"
           id="${field.oid}"/>
  </li>

  <li>
    <label for="${field.oid}-confirm">${confirm_subject}</label>
    <input type="text" name="${field.name}-confirm" value="${confirm}"
           tal:attributes="size field.widget.size; class
field.widget.css_class"
           id="${field.oid}-confirm"/>
  </li>
</ul>
  <script tal:condition="field.widget.mask" type="text/javascript">
    deform.addCallback(
        '${field.oid}',
        function (oid) {
           $("#" + oid).mask("${field.widget.mask}",
                              {placeholder:"${field.widget.mask_placeholder}"});
           $("#" + oid + "-confirm").mask("${field.widget.mask}",
                              {placeholder:"${field.widget.mask_placeholder}"});
        }
        );
    
  </script>

<input type="hidden" name="__end__" value="${field.name}:mapping"/>
Something went wrong with that request. Please try again.