[BUGFIX] EXT:form - Validation of radiogroup/ checkboxgroup elements
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Partials / Default / Show / ContainerElements / Checkboxgroup.html
1 <f:if condition="{model.showElement}">
2 <f:then>
3 <li class="csc-form-{model.elementCounter} csc-form-element csc-form-element-{model.elementTypeLowerCase}">
4 <fieldset
5 <f:for each="{model.htmlAttributes}" as="htmAttributeValue" key="htmAttributeKey">
6 {htmAttributeKey}="{htmAttributeValue}"
7 </f:for>
8 >
9 <f:if condition="{model.additionalArguments.legend}">
10 <legend>
11 {model.additionalArguments.legend}
12 <f:if condition="{model.mandatoryValidationMessages}">
13 <em><f:for each="{model.mandatoryValidationMessages}" as="mandatoryValidationMessage" iteration="iterator">{mandatoryValidationMessage}<f:if condition="{iterator.isLast}"><f:else> - </f:else></f:if></f:for></em>
14 </f:if>
15 <f:if condition="{model.validationErrorMessages}">
16 <strong><f:for each="{model.validationErrorMessages}" as="errorValidationMessage" iteration="iterator">{errorValidationMessage}<f:if condition="{iterator.isLast}"><f:else> - </f:else></f:if></f:for></strong>
17 </f:if>
18 </legend>
19 </f:if>
20 <ol>
21 <f:for each="{model.childElements}" as="element">
22 <f:render partial="{themeName}/Show/{element.partialPath}" arguments="{model: element, themeName: themeName}" />
23 </f:for>
24 </ol>
25 </fieldset>
26 </li>
27 </f:then>
28 <f:else>
29 <f:for each="{model.childElements}" as="element">
30 <f:render partial="{themeName}/Show/{element.partialPath}" arguments="{model: element, themeName: themeName}" />
31 </f:for>
32 </f:else>
33 </f:if>