{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<p>
    Ein Angebotsformular wurde soeben ausgefüllt.
</p>

<table>
    <f:for each="{form.formState.formValues}" as="value" key="label">
        <f:if condition="{value} && {label} != 'recaptcha' && {label} != 'dataprivacy' && {label} != 'agb'">
            <tr>
                <th style="text-align: left; padding-right: 10px;"><vh:form.renderLabel id="{label}"></vh:form.renderLabel></th>
                <td>
                    <f:if condition="{value -> vh:type.isDateTime()}">
                        <f:then>
                            {value -> f:format.date(format: 'd.m.Y')}
                        </f:then>
                        <f:else if="{vh:type.isArray(value: value)}">
                            <f:for each="{value}" as="arrayValue" key="arrayLabel">
                                {arrayValue} <br/>
                            </f:for>
                        </f:else>
                        <f:else>
                            {value}
                        </f:else>
                    </f:if>
                </td>
            </tr>
        </f:if>
    </f:for>
</table>