Fieldset.html 744 Bytes
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
<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}">
	<fieldset id="{element.uniqueIdentifier}" class="b_form__fieldset{f:if(condition: element.properties.elementClassAttribute, then: ' {element.properties.elementClassAttribute}')}">
		<f:if condition="{element.label}">
			<legend class="b_form__legend">{formvh:translateElementProperty(element: element, property: 'label')}</legend>
		</f:if>
		<f:for each="{element.elements}" as="element">
			<f:render partial="{element.templateName}" arguments="{element: element}" />
		</f:for>
	</fieldset>
</formvh:renderRenderable>
</html>