Initial commit
This commit is contained in:
commit
3bc898dd10
130 changed files with 25918 additions and 0 deletions
4
templates/carte_fractal/_form.html.twig
Normal file
4
templates/carte_fractal/_form.html.twig
Normal 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) }}
|
21
templates/carte_fractal/index.html.twig
Normal file
21
templates/carte_fractal/index.html.twig
Normal 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 %}
|
11
templates/carte_fractal/new.html.twig
Normal file
11
templates/carte_fractal/new.html.twig
Normal 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 %}
|
21
templates/carte_fractal/show.html.twig
Normal file
21
templates/carte_fractal/show.html.twig
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue