{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="aboveStandaloneTeaser" context="{ service: service }" />
    <f:if condition="{service}">
        <f:then>
            <vh:render partial="Service/Teaser" arguments="{service: service, slots: slots}" />
        </f:then>
        <f:else if="!{neos:rendering.inBackend(node: node)}">
            <!-- Service:Teaser node not rendered: No service 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="belowStandaloneTeaser" context="{ service: service }" />
</f:section>
