{% 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-testimonialadd">
                    {{ 'action.save'|trans({}, 'action') }}
                </button>
            </li>
        </ul>
        
        <h1>
            {% if form.witness.vars.value is empty %}
                {{ 'action.add.testimonial.label'|trans({}, 'action') }}
            {% else %}
                {{ 'action.edit.testimonial.label'|trans({}, 'action') }}
            {% endif %}
        </h1>
    </header>

    {{ form(form, {'attr': {'id': 'form-testimonialadd', 'enctype' : 'multipart/form-data'}}) }}
        
    <ul class="btns">
        <li>
            <button class="btn btn-save" form="form-testimonialadd">
                {{ 'action.save'|trans({}, 'action') }}
            </button>
        </li>
    </ul>
{% endblock %}
