{% extends '@CadolesCore/base.html.twig' %}

{% block pagewrapper %}
    <div class="row">
        <h2>Thème en cours</h2>
        <div class="col-sm-3">
            <div class="thumbnail">
                <img src="{{currentheme.url}}/look.png" style="height:170px">
            
                <div class="caption">
                    <h3>{{currentheme.name}}</h3>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <h2>Thèmes disponibles</h2>
        {% for theme in themes %}
            <div class="col-sm-3">
                <div class="thumbnail">
                    <img src="{{theme.url}}/look.png" style="height:170px">
                
                    <div class="caption">
                        <h3>{{theme.name}}</h3>
                        <p><a href="{{ path("cadoles_core_config_theme_selec",{"name":theme.dir}) }}" class="btn btn-primary" role="button">Sélectionner</a>
                    </div>
                </div>
            </div>
        {% endfor %}
    </div>
{% endblock %}






