{% extends 'base.html.twig' %}

{% block pagewrapper %}
    {% if not inframe %}
        <h1 class="page-title">Gestion des Icônes</h1>
    {% endif %}

    <p>
    <a class="btn btn-success" href={{ path('app_portal_'~access~'_icon_submit',{'inframe': inframe}) }}>Ajouter</a>
    {% if inframe %}
        <a class="btn btn-secondary" href={{ path('app_portal_'~access~'_icon_select') }}>Fermer</a>
    {% endif %}
    </p>

    <div>
        {% for icon in icons %}
            <a href="{{ path('app_portal_'~access~'_icon_update', {id : icon.id, 'inframe': inframe}) }}"><img class="icon" height="90" src="{{ asset(icon.label) }}" style="padding:10px; margin-bottom:2px; background-color: #{{color["main"]}}"></a>
        {% endfor %}
    </div>
{% endblock %}


