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

{% block title %}CollectionFractal{% endblock %}

{% block main %}
<div class="text-center">
    <h1 class="mb-3">Collection "{{ collection_fractal.name }}"</h1>
        <ul>
            {% for carte in collection_fractal.cartesfractal %}
                <a href="{{ path('app_collection_carte_show', {'carte_id': carte.id, 'collection_id': collection_fractal.id}) }}" class="btn btn-success">
                    <img src={{vich_uploader_asset(carte,'imageFile')}} class="img-fluid" alt="carte" />
                    <br>
                    <p class="text-center"><h5>{{ carte }}</h5></p>
                </a>
            {% endfor %}
        </ul>


    <a href="{{ path('app_collection_fractal_index') }}", class="btn btn-primary">Retour aux Collections</a>
</div>
{% endblock %}
