{namespace neos=Neos\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace common=Newland\Toubiz\Common\Neos\ViewHelpers}

<f:layout name="Default"/>

<f:section name="Content">
    <common:slot.render slot="aboveTeaserList" context="{ services: services }" />
    <f:if condition="{services}">
        <f:then>
            <vh:render partial="Service/TeaserList" arguments="{_all}" />
        </f:then>
        <f:else if="!{neos:rendering.inBackend(node: node)}">
            <!-- Service:TeaserList node not rendered: No services selected. -->
        </f:else>
        <f:else>
            <div style="border: 5px solid yellow; padding: 25px; margin: 25px;">
                <f:translate
                    id="noServiceSelected"
                    package="Newland.Toubiz.Services.Neos"
                    source="View/Error"
                />
            </div>
        </f:else>
    </f:if>
    <common:slot.render slot="belowTeaserList" context="{ services: services }" />
</f:section>
