Checkbox.html 1.04 KB
Newer Older
David Steeb's avatar
David Steeb committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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"
>
<formvh:renderRenderable renderable="{element}">
	<f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
		<f:form.checkbox
			property="{element.identifier}"
			id="{element.uniqueIdentifier}"
			class="b_form__checkbox {element.properties.elementClassAttribute}"
			value="{element.properties.value}"
			errorClass="{element.properties.elementErrorClassAttribute}"
			additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
		/>
		<label class="b_form__label b_form__label--checkbox {element.properties.elementClassAttribute}" for="{element.uniqueIdentifier}">
			<span>{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.required}"><f:render partial="Field/Required" /></f:if></span>
		</label>
	</f:render>
</formvh:renderRenderable>
</html>