{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace ot=Opentalent\OtTemplating\ViewHelpers}

<f:comment><!-- uses the layout Home, defined in layouts/[templateName]/Home.html --></f:comment>
<f:layout name="{ot:template.current()}/Home" />

<f:section name='Configuration'>
    <flux:form id="home" label="LLL:template_home" extensionName="Opentalent.OtTemplating">
        <flux:field.input name="settings.eventsLimit" label="LLL:next_events_limit" default="5" minimum="1" maximum="24" eval="int"/>
        <flux:field.input name="settings.eventsPeriod" label="LLL:next_events_period" default="8" minimum="0" eval="int"/>
    </flux:form>

    <!-- Backend layout grid -->
    <flux:grid>
        <flux:grid.row>
            <flux:grid.column colPos="1" name="Leftcol" label="LLL:left_column" style="width: 25%" />
            <flux:grid.column colPos="0" name="Content" label="LLL:content" style="width: 50%" />
            <flux:grid.column colPos="2" name="Rightcol" label="LLL:right_column" style="width: 25%" />
        </flux:grid.row>
    </flux:grid>

</f:section>

<f:section name="Leftcol">
    <f:comment><!-- Render colPos=0 in this section --></f:comment>
    <v:content.render column="1" />
</f:section>

<f:section name="Content">
    <f:comment><!-- Render colPos=1 in this section --></f:comment>
    <v:content.render column="0" />
</f:section>
<f:section name="Rightcol">
    <f:comment><!-- Render colPos=2 in this section --></f:comment>
    <v:content.render column="2" />
</f:section>
