read.html.twig 1.09 KB
Newer Older
1
{% extends '@Techno/layout.html.twig' %}
2 3 4 5 6 7 8 9 10 11 12

{% block title %}
    Galerie
{% endblock %}

{% block content %}

    {{ block('breadcrumb') }}

    <h1>{{ block('title') }}</h1>

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

21
    {% for image in images %}
22 23
        <div class="image">

24 25 26 27
            <a href="{{ path('techno_gallery_image', {'id': image.id }) }}">
                <img src="{{ image.path }}" alt="{{ image.name }}" title="{{ image.name }}" />
            </a>

Mat's avatar
Mat committed
28
            <div class="modify">
29 30 31 32 33 34 35 36
                <a href="{{ path('techno_gallery_update', {'id': image.id }) }}" class="btn">
                    <i class="fas fa-pen-square"></i>
                </a>
                <a href="{{ path('techno_gallery_delete', {'id': image.id }) }}" class="btn btn-danger">
                    <i class="fas fa-trash"></i>
                </a>
            </div>

Mat's avatar
Mat committed
37
        </div>
38 39 40
    {% endfor %}

{% endblock %}