{namespace formvh=TYPO3\CMS\Form\ViewHelpers}
{namespace formmailtext=Kitzberger\FormMailtext\ViewHelpers}
<f:layout name="CommunicationEmail"/>
<f:section name="Title">
    <f:render partial="Title" arguments="{_all}"/>

</f:section>

<f:section name="Main">
    <table>
        <formvh:renderAllFormValues renderable="{form.formDefinition}" as="formValue">
            <tr>
                <f:if condition="{formValue.isSection}">
                    <f:then>
                        <td colspan="2"><b>{formvh:translateElementProperty(element: formValue.element, property: 'label')}</b></td>
                    </f:then>
                    <f:else>
                        <f:if condition="{formValue.element.type} != 'LinkedCheckbox'">
                            <td valign="top" align="left">
                                <p>{formvh:translateElementProperty(element: formValue.element, property: 'label')}<br>
                                    <f:if condition="{formValue.value}">
                                        <f:then>
                                            <f:if condition="{formValue.isMultiValue}">
                                                <f:then>
                                                    <f:for each="{formValue.processedValue}" as="value">
                                                        <f:format.nl2br><b>{value}</b></f:format.nl2br>
                                                    </f:for>
                                                </f:then>
                                                <f:else>
                                                    <b>
                                                        <f:format.nl2br>{formValue.processedValue}</f:format.nl2br>
                                                    </b>
                                                </f:else>
                                            </f:if>
                                        </f:then>
                                        <f:else>
                                            -
                                        </f:else>
                                    </f:if>
                                </p>
                            </td>

                        </f:if>
                    </f:else>
                </f:if>
            </tr>
        </formvh:renderAllFormValues>
    </table>
</f:section>

<f:section name="Footer">
    <f:render partial="Footer" arguments="{_all}"/>
</f:section>
