[FEATURE] EXT:form - integrate new form framework
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Templates / FormElements / AdvancedPassword.html
1 {namespace formvh=TYPO3\CMS\Form\ViewHelpers}
2 <f:layout name="Field" />
3 <f:section name="field">
4 <div class="form-group">
5 <f:form.password
6 property="{element.identifier}.password"
7 id="{element.uniqueIdentifier}"
8 class="{element.properties.elementClassAttribute} form-control"
9 errorClass="{element.properties.elementErrorClassAttribute}"
10 additionalAttributes="{f:if(condition: '{element.required}', then: '{required: \'required\', placeholder: \'{formvh:translateElementProperty(element: element, property: \"placeholder\")}\'}', else: '{placeholder: \'{formvh:translateElementProperty(element: element, property: \"placeholder\")}\'}')}"
11 />
12 <f:if condition="{formvh:translateElementProperty(element: element, property: 'passwordDescription')}">
13 <span class="help-block">{formvh:translateElementProperty(element: element, property: 'passwordDescription')}</span>
14 </f:if>
15 </div>
16 <div class="form-group">
17 <f:if condition="{formvh:translateElementProperty(element: element, property: 'confirmationLabel')}">
18 <label for="{element.uniqueIdentifier}-confirmation">{formvh:translateElementProperty(element: element, property: 'confirmationLabel')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></label>
19 </f:if>
20 <f:form.password
21 property="{element.identifier}.confirmation"
22 id="{element.uniqueIdentifier}-confirmation"
23 class="{element.properties.confirmationClassAttribute} form-control"
24 errorClass="{element.properties.elementErrorClassAttribute}"
25 additionalAttributes="{f:if(condition: '{element.required}', then: '{required: \'required\', placeholder: \'{formvh:translateElementProperty(element: element, property: \"placeholder\")}\'}', else: '{placeholder: \'{formvh:translateElementProperty(element: element, property: \"placeholder\")}\'}')}"
26 />
27 </div>
28 </f:section>