[BUGFIX] EXT:form - fix clicks on checkbox labels in IE/Edge
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / Checkbox.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 <formvh:renderRenderable renderable="{element}">
3 <f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
4 <div class="form-check">
5 <label class="{element.properties.elementClassAttribute} form-check-label" for="{element.uniqueIdentifier}">
6 <f:form.checkbox
7 property="{element.identifier}"
8 id="{element.uniqueIdentifier}"
9 class="{element.properties.elementClassAttribute}"
10 value="{element.properties.value}"
11 errorClass="{element.properties.elementErrorClassAttribute}"
12 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
13 />
14 <span>{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
15 </label>
16 </div>
17 </f:render>
18 </formvh:renderRenderable>
19 </html>