Initial commit
This commit is contained in:
commit
3bc898dd10
130 changed files with 25918 additions and 0 deletions
4
templates/membre_fractal/_delete_form.html.twig
Normal file
4
templates/membre_fractal/_delete_form.html.twig
Normal file
|
@ -0,0 +1,4 @@
|
|||
<form method="post" action="{{ path('app_membre_fractal_delete', {'id': membre_fractal.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ membre_fractal.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
4
templates/membre_fractal/_form.html.twig
Normal file
4
templates/membre_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) }}
|
22
templates/membre_fractal/edit.html.twig
Normal file
22
templates/membre_fractal/edit.html.twig
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Éditer {{membre_fractal.pseudo}}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{% if 'ROLE_ADMIN' in app.user.roles %}
|
||||
|
||||
<h1>Éditer {{membre_fractal.pseudo}}</h1>
|
||||
{{ include('membre_fractal/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<a href="{{ path('app_membre_fractal_index') }}", class="btn btn-primary">Retour à la liste</a>
|
||||
{{ include('membre_fractal/_delete_form.html.twig') }}
|
||||
|
||||
{% else %}
|
||||
|
||||
<h1>Éditer mon profil</h1>
|
||||
{{ include('membre_fractal/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<a href="{{ path('app_membre_fractal_show',{'id':membre_fractal.id}) }}", class="btn btn-primary">Retour au profil</a>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
33
templates/membre_fractal/index.html.twig
Normal file
33
templates/membre_fractal/index.html.twig
Normal file
|
@ -0,0 +1,33 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}ADMIN Membres{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<h1>Liste des Membres</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Pseudo</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for membre_fractal in membre_fractales %}
|
||||
<tr>
|
||||
<td>{{ membre_fractal.id }}</td>
|
||||
<td>{{ membre_fractal.pseudo }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_membre_fractal_show', {'id': membre_fractal.id}) }}" class="btn btn-primary">Détails</a>
|
||||
<a href="{{ path('app_membre_fractal_edit', {'id': membre_fractal.id}) }}" class="btn btn-danger">Éditer</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
53
templates/membre_fractal/show.html.twig
Normal file
53
templates/membre_fractal/show.html.twig
Normal file
|
@ -0,0 +1,53 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
|
||||
{% block title %}Mon Compte{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="text-center"><h1>Bonjour {{ membre_fractal.pseudo }} !</h1>
|
||||
<a href="{{ path('app_membre_fractal_edit',{'id': membre_fractal.id}) }}" class="btn btn-danger mt-3 mb-3">Éditer mon profil</a>
|
||||
{% if 'ROLE_ADMIN' in app.user.roles %}
|
||||
<a href="{{ path('app_membre_fractal_index') }}" class="btn btn-primary mb-3">Liste des Membres</a>
|
||||
{% endif %}
|
||||
|
||||
<h2>Mes Classeurs</h2>
|
||||
{% for classeur in membre_fractal.classeursfractal %}
|
||||
<div class="card shadow p-3 bg-body-tertiary rounded bg-light mb-3 mx-auto" style="width: 15rem;">
|
||||
|
||||
<img src='https://www.pngkey.com/png/detail/160-1600289_sierpinski-triangle.png' class="mx-auto p-2" alt="classeur" width="150" height="100">
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<h5 class="card-title">{{ classeur.name }}</h5>
|
||||
<div class="container">
|
||||
<a href="{{ path('app_classeur_fractal_show',{'id':classeur.id}) }}" class="btn btn-primary">Détails</a>
|
||||
<a href="{{ path('app_classeur_fractal_edit',{'id':classeur.id}) }}" class="btn btn-danger">Éditer</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
<h2>Mes Collections</h2>
|
||||
{% for collection in membre_fractal.collectionsfractal %}
|
||||
<div class="card shadow p-3 bg-body-tertiary rounded bg-light mb-3 mx-auto" style="width: 15rem;">
|
||||
|
||||
<img src='https://render.fineartamerica.com/images/rendered/default/flat/tapestry/images/artworkimages/medium/1/buddhabrot-fractal-buddha-miroslav-nemecek.jpg?&targetx=0&targety=-68&imagewidth=930&imageheight=930&modelwidth=930&modelheight=794&backgroundcolor=000018&orientation=1&producttype=tapestry-50-61' class="mx-auto p-2" alt="classeur" width="100" height="100">
|
||||
|
||||
<div class="card-body mx-auto p-2">
|
||||
|
||||
<h5 class="card-title text-center">{{ collection.name }}</h5>
|
||||
<div class="container mx-auto p-2">
|
||||
<a href="{{ path('app_collection_fractal_show',{'id':collection.id}) }}" class="btn btn-primary">Détails</a>
|
||||
<a href="{{ path('app_collection_fractal_edit',{'id':collection.id}) }}" class="btn btn-danger">Éditer</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% else %}
|
||||
<h3>Vous n'avez aucune collection.</h3>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue