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

{% block title %}Carte {{ carte.description }}{% endblock %}

{% block main %}
    <div class="card shadow p-3 mb-5 bg-success rounded text-light mx-auto" style="width: 25rem;">
        <h1 class="text-center">{{ carte.description }}</h1>

        <img src={{ vich_uploader_asset(carte,'imageFile') }} class="mx-auto img-fluid" alt="carte" />  

        <div class="card-body mx-auto p-2">

          <p class="card-text text-center">{{ carte.type }}</p>
          <p class="card-text text-center">{{ carte.prix }} Points Fractal</p>
        </div>

    </div>
    <div class="text-center">
    <a href="{{ path('app_classeur_fractal_show',{'id':carte.classeurFractal.id})}}" class="btn btn-primary">Retour</a>
    </div>
{% endblock %}
