[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}" contentAs="elementContent">
4 <div id="{element.uniqueIdentifier}" class="inputs-list">
5 <div class="form-group">
6 <f:for each="{element.properties.options}" as="label" key="value" iteration="idIterator">
7 <div class="form-check">
8 <label class="form-check-label" for="{element.uniqueIdentifier}-{idIterator.index}">
9 <f:form.radio
10 property="{element.identifier}"
11 id="{element.uniqueIdentifier}-{idIterator.index}"
12 class="{element.properties.elementClassAttribute} form-check-input"
13 value="{value}"
14 errorClass="{element.properties.elementErrorClassAttribute}"
15 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
16 />
17 <span>{formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')}</span>
18 </label>
19 </div>
20 </f:for>
21 </div>
22 </div>
23 </f:render>
24 </formvh:renderRenderable>
25 </html>