Skip to content
Snippets Groups Projects
Commit 0c6baeb5 authored by WAGNER ERIC's avatar WAGNER ERIC
Browse files

Ajout des validations des ajouts

parent 12ad5620
Branches
No related merge requests found
{% extends 'base.html.twig' %}
{% extends 'user_base.html.twig' %}
{% block title %}Concerts index{% endblock %}
{% block title %}Concert index{% endblock %}
{% block body %}
<h1>Concerts index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Img</th>
<th>Alt</th>
<th>Description</th>
<th>Artiste</th>
<th>Date</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for concert in concerts %}
<tr>
<td>{{ concert.id }}</td>
<td>{{ concert.nom }}</td>
<td>{{ concert.img }}</td>
<td>{{ concert.alt }}</td>
<td>{{ concert.description }}</td>
<td>{{ concert.artiste }}</td>
<td>{{ concert.date ? concert.date|date('Y-m-d') : '' }}</td>
<td>
<a href="{{ path('app_concerts_show', {'id': concert.id}) }}">show</a>
<a href="{{ path('app_concerts_edit', {'id': concert.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="8">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_concerts_new') }}">Create new</a>
{% endblock %}
<div class="h-screen flex flex-col items-center justify-center gap-12">
<h1 class="text-[#005500]">Votre Concert a bien été ajoutée.</h1>
<a href="{{ path('home') }}" class="p-2 md:px-4 md:p-3 bg-[#EEEEEE] hover:bg-[#326273] hover:text-[#EEEEEE] text-[#326273] rounded-3xl font-bold text-base md:text-lg transition-colors duration-500">Retour à l'accueil</a>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html.twig' %}
{% extends 'user_base.html.twig' %}
{% block title %}Salles index{% endblock %}
{% block body %}
<h1>Salles index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Description</th>
<th>PositionGPS</th>
<th>Img</th>
<th>Alt</th>
<th>Parcours</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for salle in salles %}
<tr>
<td>{{ salle.id }}</td>
<td>{{ salle.nom }}</td>
<td>{{ salle.description }}</td>
<td>{{ salle.positionGPS }}</td>
<td>{{ salle.img }}</td>
<td>{{ salle.alt }}</td>
<td>{{ salle.parcours }}</td>
<td>
<a href="{{ path('app_salles_show', {'id': salle.id}) }}">show</a>
<a href="{{ path('app_salles_edit', {'id': salle.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="8">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_salles_new') }}">Create new</a>
{% endblock %}
<div class="h-screen flex flex-col items-center justify-center gap-12">
<h1 class="text-[#005500]">Votre Salle a bien été ajoutée.</h1>
<a href="{{ path('home') }}" class="p-2 md:px-4 md:p-3 bg-[#EEEEEE] hover:bg-[#326273] hover:text-[#EEEEEE] text-[#326273] rounded-3xl font-bold text-base md:text-lg transition-colors duration-500">Retour à l'accueil</a>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html.twig' %}
{% extends 'user_base.html.twig' %}
{% block title %}Villes index{% endblock %}
{% block body %}
<h1>Villes index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>PositionGPS</th>
<th>Img</th>
<th>Alt</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for ville in villes %}
<tr>
<td>{{ ville.id }}</td>
<td>{{ ville.nom }}</td>
<td>{{ ville.positionGPS }}</td>
<td>{{ ville.img }}</td>
<td>{{ ville.alt }}</td>
<td>
<a href="{{ path('app_villes_show', {'id': ville.id}) }}">show</a>
<a href="{{ path('app_villes_edit', {'id': ville.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_villes_new') }}">Create new</a>
{% endblock %}
<div class="h-screen flex flex-col items-center justify-center gap-12">
<h1 class="text-[#005500]">Votre Ville a bien été ajoutée.</h1>
<a href="{{ path('home') }}" class="p-2 md:px-4 md:p-3 bg-[#EEEEEE] hover:bg-[#326273] hover:text-[#EEEEEE] text-[#326273] rounded-3xl font-bold text-base md:text-lg transition-colors duration-500">Retour à l'accueil</a>
</div>
{% endblock %}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment