60 lines
2.3 KiB
XML
60 lines
2.3 KiB
XML
<div i18n:domain="deform" tal:omit-tag=""
|
|
tal:define="oid oid|field.oid;
|
|
name name|field.name;
|
|
css_class css_class|field.widget.css_class;
|
|
style style|field.widget.style;
|
|
use_buefy use_buefy|0;">
|
|
|
|
<div tal:condition="not use_buefy" tal:omit-tag="">
|
|
${field.start_mapping()}
|
|
<div>
|
|
<input type="password"
|
|
name="${name}"
|
|
value="${field.widget.redisplay and cstruct or ''}"
|
|
tal:attributes="class string: form-control ${css_class or ''};
|
|
style style;
|
|
attributes|field.widget.attributes|{};"
|
|
id="${oid}"
|
|
i18n:attributes="placeholder"
|
|
placeholder="Password"/>
|
|
</div>
|
|
<div>
|
|
<input type="password"
|
|
name="${name}-confirm"
|
|
value="${field.widget.redisplay and confirm or ''}"
|
|
tal:attributes="class string: form-control ${css_class or ''};
|
|
style style;
|
|
confirm_attributes|field.widget.confirm_attributes|{};"
|
|
id="${oid}-confirm"
|
|
i18n:attributes="placeholder"
|
|
placeholder="Confirm Password"/>
|
|
</div>
|
|
${field.end_mapping()}
|
|
</div>
|
|
|
|
<div tal:condition="use_buefy">
|
|
${field.start_mapping()}
|
|
<b-input type="password"
|
|
name="${name}"
|
|
value="${field.widget.redisplay and cstruct or ''}"
|
|
tal:attributes="class string: form-control ${css_class or ''};
|
|
style style;
|
|
attributes|field.widget.attributes|{};"
|
|
id="${oid}"
|
|
i18n:attributes="placeholder"
|
|
placeholder="Password">
|
|
</b-input>
|
|
<b-input type="password"
|
|
name="${name}-confirm"
|
|
value="${field.widget.redisplay and confirm or ''}"
|
|
tal:attributes="class string: form-control ${css_class or ''};
|
|
style style;
|
|
confirm_attributes|field.widget.confirm_attributes|{};"
|
|
id="${oid}-confirm"
|
|
i18n:attributes="placeholder"
|
|
placeholder="Confirm Password">
|
|
</b-input>
|
|
${field.end_mapping()}
|
|
</div>
|
|
|
|
</div>
|