create.html.twig 857 Bytes
Newer Older
1
{% extends '@Techno/layout.html.twig' %}
2 3 4 5 6 7 8 9 10 11

{% block title %}
    Ajouter une Image
{% endblock %}

{% block content %}

    {{ block('breadcrumb') }}

    <h1>{{ block('title') }}</h1>
12
    <a href="{{ path('techno_gallery_read') }}"><i class="fas fa-arrow-left fa-fw"></i>Retour vers la liste</a>
13

14 15 16 17 18 19
    {% for label, messages in app.flashes({'success', 'warning', 'errors'}) %}
        {% for message in messages %}
            <div class="flash-{{ label }}">
                {{ message }}
            </div>
        {% endfor %}
20 21
    {% endfor %}

22 23 24 25 26 27 28 29
    {{ form_start(formImage) }}
    {{ form_errors(formImage) }}

        {{ form_row(formImage.name) }}
        {{ form_row(formImage.path) }}
        {{ form_row(formImage.legend) }}
        {{ form_row(formImage.owner) }}
        {{ form_row(formImage.save) }}
30

31
    {{ form_end(formImage) }}
32 33

{% endblock %}