[BUGFIX] Fix multi-checkbox/radiobox labels for values containing dots
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / MultiCheckbox.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 <f:for each="{element.properties.options}" as="label" key="value">
6 <div class="form-check">
7 <label class="form-check-label">
8 <f:form.checkbox
9 property="{element.identifier}"
10 multiple="1"
11 class="{element.properties.elementClassAttribute}"
12 value="{value}"
13 errorClass="{element.properties.elementErrorClassAttribute}"
14 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
15 />
16 <span>{formvh:translateElementProperty(element: element, property: '{0: \'options\', 1: value}')}</span>
17 </label>
18 </div>
19 </f:for>
20 </div>
21 </f:render>
22 </formvh:renderRenderable>
23 </html>