{% extends 'Admin/layout.html.twig' %}
{%- import 'Admin/Form/macros.html.twig' as m -%}

{% block body %}
    <header>
        <ul class="btns">
            <li class="btns-back">
                {{ m.step_back() }}
            </li>
            <li>
                <button class="btn btn-save" form="form-slideradd">
                    {{ 'action.save'|trans({}, 'action') }}
                </button>
            </li>
        </ul>

        <h1>{{ form.vars.value.id is empty ? 'Ajouter une' : 'Modifier la' }} slide</h1>
    </header>

    {{ form(form, {'attr':{'id':'form-slideradd'}}) }}

    <ul class="btns">
        <li>
            <button class="btn btn-save" form="form-slideradd">
                {{ 'action.save'|trans({}, 'action') }}
            </button>
        </li>
    </ul>
{% endblock %}
