[BUGFIX] EXT:form - fix clicks on checkbox labels in IE/Edge
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / RadioButton.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 <label class="control-label">{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 <div id="{element.uniqueIdentifier}" class="inputs-list">
7 <div class="form-group">
8 <f:for each="{element.properties.options}" as="label" key="value" iteration="idIterator">
9 <div class="radio">
10 <label for="{element.uniqueIdentifier}-{idIterator.index}">
11 <f:form.radio
12 property="{element.identifier}"
13 id="{element.uniqueIdentifier}-{idIterator.index}"
14 class="{element.properties.elementClassAttribute} form-check-input"
15 value="{value}"
16 errorClass="{element.properties.elementErrorClassAttribute}"
17 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
18 />
19 <span>{formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')}</span>
20 </label>
21 </div>
22 </f:for>
23 </div>
24 </div>
25 </div>
26 </f:render>
27 </formvh:renderRenderable>
28 </html>