Initial commit

This commit is contained in:
Crizomb 2025-06-28 12:17:52 +02:00
commit 3bc898dd10
130 changed files with 25918 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn btn-success mt-2 mb-2">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}

View file

@ -0,0 +1,21 @@
{% extends 'base.html.twig' %}
{% block title %}Hello CarteFractalController!{% endblock %}
{% block main %}
<div class="text-center">
{% if 'ROLE_ADMIN' in app.user.roles %}
<h1>Liste des Cartes</h1>
{% else %}
<h1 class="mb-3">Mes Cartes</h1>
{% endif %}
{% for carte in cartesfractal %}
<a href="{{ path('app_carte_fractal_show',{'id': carte.id}) }}" class="btn bg-success text-light">
<img src={{ vich_uploader_asset(carte,'imageFile') }} class="mx-auto p-2 img-fluid" alt="carte" />
<div class="card-body mx-auto p-2">
<h5 class="card-title text-center">{{ carte.description }}</h5>
</div>
</a>
{% endfor %}
</div>
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}New CarteFractal{% endblock %}
{% block main %}
<h1>Créer une Carte Fractal</h1>
{{ include('carte_fractal/_form.html.twig') }}
<a href="{{ path('app_membre_fractal_show',{'id':membre_fractal.id}) }}" class="btn btn-primary">Retour</a>
{% endblock %}

View file

@ -0,0 +1,21 @@
{% 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 %}