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

{% block pagewrapper %}
    <h1 class="page-title">
        Gestion des Thèmes
    </h1>
    
    <h2>Thème en cours</h2>
    <div class="row">
        <div class="col-md-3">
            {{currentheme.name}}
            <div class="thumbnail">
                <img src="{{ asset('themes/'~currentheme.dir~'/look.png') }}" class="img-thumbnail">
            </div>
        </div>
    </div>

    <h2 class="mt-5">Thèmes disponibles</h2>
    <div class="row">
        {% for theme in themes %}
            <div class="col-md-3 mb-5">
                {{theme.name}}
                <div class="thumbnail">
                    <img src="{{ asset('themes/'~theme.dir~'/look.png') }}" class="img-thumbnail">
                </div>
                <a href="{{ path("app_core_config_theme_selec",{"name":theme.dir}) }}" class="btn btn-primary" style="width:100%" role="button">Sélectionner</a>
            </div>
        {% endfor %}
    </div>
{% endblock %}






