1f6cbfd654b400e82e0b4a9de2ed653713e0c696
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / Field / Field.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:form.validationResults for="{element.identifier}">
3 <div class="form-group{f:if(condition: '{validationResults.errors.0}', then: ' has-error')}">
4 <label class="control-label" for="{element.uniqueIdentifier}">{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></label>
5 <div class="{element.properties.containerClassAttribute}">
6 <f:format.raw>
7 {elementContent}
8 <f:if condition="{validationResults.flattenedErrors}">
9 <span class="error help-block" role="alert">
10 <f:for each="{validationResults.errors}" as="error">
11 {formvh:translateElementError(element: element, code: error.code, arguments: error.arguments, defaultValue: error.message)}
12 <br />
13 </f:for>
14 </span>
15 </f:if>
16 </f:format.raw>
17 <f:if condition="{element.properties.elementDescription}">
18 <span class="help-block">{formvh:translateElementProperty(element: element, property: 'elementDescription')}</span>
19 </f:if>
20 </div>
21 </div>
22 </f:form.validationResults>
23 </html>