diff --git a/public/css/list.css b/public/css/ControllerVues/list.css similarity index 100% rename from public/css/list.css rename to public/css/ControllerVues/list.css diff --git a/public/css/new.css b/public/css/ControllerVues/new.css similarity index 100% rename from public/css/new.css rename to public/css/ControllerVues/new.css diff --git a/public/css/show.css b/public/css/show.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/Controller/ClientsController.php b/src/Controller/ClientsController.php index bf6701d..3869bd0 100644 --- a/src/Controller/ClientsController.php +++ b/src/Controller/ClientsController.php @@ -42,13 +42,6 @@ final class ClientsController extends AbstractController ]); } - #[Route('/{id}', name: 'app_clients_show', methods: ['GET'])] - public function show(Clients $client): Response - { - return $this->render('clients/show.html.twig', [ - 'client' => $client, - ]); - } #[Route('/{id}/edit', name: 'app_clients_edit', methods: ['GET', 'POST'])] public function edit(Request $request, Clients $client, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/DetailsCommandeController.php b/src/Controller/DetailsCommandeController.php index 21139a1..f0f8beb 100644 --- a/src/Controller/DetailsCommandeController.php +++ b/src/Controller/DetailsCommandeController.php @@ -42,13 +42,6 @@ final class DetailsCommandeController extends AbstractController ]); } - #[Route('/{id}', name: 'app_details_commande_show', methods: ['GET'])] - public function show(DetailsCommande $detailsCommande): Response - { - return $this->render('details_commande/show.html.twig', [ - 'details_commande' => $detailsCommande, - ]); - } #[Route('/{id}/edit', name: 'app_details_commande_edit', methods: ['GET', 'POST'])] public function edit(Request $request, DetailsCommande $detailsCommande, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/PlatsController.php b/src/Controller/PlatsController.php index e9c034d..498590a 100644 --- a/src/Controller/PlatsController.php +++ b/src/Controller/PlatsController.php @@ -42,13 +42,7 @@ final class PlatsController extends AbstractController ]); } - #[Route('/{id}', name: 'app_plats_show', methods: ['GET'])] - public function show(Plats $plat): Response - { - return $this->render('plats/show.html.twig', [ - 'plat' => $plat, - ]); - } + #[Route('/{id}/edit', name: 'app_plats_edit', methods: ['GET', 'POST'])] public function edit(Request $request, Plats $plat, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/ReductionsController.php b/src/Controller/ReductionsController.php index c26f767..da7cdeb 100644 --- a/src/Controller/ReductionsController.php +++ b/src/Controller/ReductionsController.php @@ -42,13 +42,6 @@ final class ReductionsController extends AbstractController ]); } - #[Route('/{id}', name: 'app_reductions_show', methods: ['GET'])] - public function show(Reductions $reduction): Response - { - return $this->render('reductions/show.html.twig', [ - 'reduction' => $reduction, - ]); - } #[Route('/{id}/edit', name: 'app_reductions_edit', methods: ['GET', 'POST'])] public function edit(Request $request, Reductions $reduction, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/ReservationsController.php b/src/Controller/ReservationsController.php index 3098b4c..b0287fd 100644 --- a/src/Controller/ReservationsController.php +++ b/src/Controller/ReservationsController.php @@ -42,13 +42,6 @@ final class ReservationsController extends AbstractController ]); } - #[Route('/{id}', name: 'app_reservations_show', methods: ['GET'])] - public function show(Reservations $reservation): Response - { - return $this->render('reservations/show.html.twig', [ - 'reservation' => $reservation, - ]); - } #[Route('/{id}/edit', name: 'app_reservations_edit', methods: ['GET', 'POST'])] public function edit(Request $request, Reservations $reservation, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/StatutCommandesController.php b/src/Controller/StatutCommandesController.php index 347914c..53d82c4 100644 --- a/src/Controller/StatutCommandesController.php +++ b/src/Controller/StatutCommandesController.php @@ -42,13 +42,6 @@ final class StatutCommandesController extends AbstractController ]); } - #[Route('/{id}', name: 'app_statut_commandes_show', methods: ['GET'])] - public function show(StatutCommandes $statutCommande): Response - { - return $this->render('statut_commandes/show.html.twig', [ - 'statut_commande' => $statutCommande, - ]); - } #[Route('/{id}/edit', name: 'app_statut_commandes_edit', methods: ['GET', 'POST'])] public function edit(Request $request, StatutCommandes $statutCommande, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/StatutTablesController.php b/src/Controller/StatutTablesController.php index ab9f2a6..84e5c61 100644 --- a/src/Controller/StatutTablesController.php +++ b/src/Controller/StatutTablesController.php @@ -42,13 +42,6 @@ final class StatutTablesController extends AbstractController ]); } - #[Route('/{id}', name: 'app_statut_tables_show', methods: ['GET'])] - public function show(StatutTables $statutTable): Response - { - return $this->render('statut_tables/show.html.twig', [ - 'statut_table' => $statutTable, - ]); - } #[Route('/{id}/edit', name: 'app_statut_tables_edit', methods: ['GET', 'POST'])] public function edit(Request $request, StatutTables $statutTable, EntityManagerInterface $entityManager): Response diff --git a/src/Controller/TablesController.php b/src/Controller/TablesController.php index cb2e641..c1c834b 100644 --- a/src/Controller/TablesController.php +++ b/src/Controller/TablesController.php @@ -42,13 +42,7 @@ final class TablesController extends AbstractController ]); } - #[Route('/{id}', name: 'app_tables_show', methods: ['GET'])] - public function show(Tables $table): Response - { - return $this->render('tables/show.html.twig', [ - 'table' => $table, - ]); - } + #[Route('/{id}/edit', name: 'app_tables_edit', methods: ['GET', 'POST'])] public function edit(Request $request, Tables $table, EntityManagerInterface $entityManager): Response diff --git a/templates/clients/index.html.twig b/templates/clients/index.html.twig index 3c9222f..8296934 100644 --- a/templates/clients/index.html.twig +++ b/templates/clients/index.html.twig @@ -2,7 +2,7 @@ {% block title %}Clients index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/commande/index.html.twig b/templates/commande/index.html.twig deleted file mode 100644 index 5d09fae..0000000 --- a/templates/commande/index.html.twig +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'base.html.twig' %} - -{% block title %}Hello CommandeController!{% endblock %} -{% block stylesheets %} - - -{% endblock %} -{% block body %} - - -
-

Hello {{ controller_name }}! ✅

- - This friendly message is coming from: - -
-{% endblock %} diff --git a/templates/commandes/index.html.twig b/templates/commandes/index.html.twig index 63e9977..2d0002c 100644 --- a/templates/commandes/index.html.twig +++ b/templates/commandes/index.html.twig @@ -2,7 +2,7 @@ {% block title %}Commandes index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} @@ -26,7 +26,11 @@ {{ commande.Statut ? 'Yes' : 'No' }} {{ commande.Total }} - show +
+ + +
+ edit diff --git a/templates/commandes/new.html.twig b/templates/commandes/new.html.twig index 85f9551..9895178 100644 --- a/templates/commandes/new.html.twig +++ b/templates/commandes/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Commandes{% endblock %} {% block stylesheets %} - + {% endblock %} diff --git a/templates/commandes/show.html.twig b/templates/commandes/show.html.twig deleted file mode 100644 index ce527e4..0000000 --- a/templates/commandes/show.html.twig +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'base.html.twig' %} - -{% block title %}Commandes{% endblock %} - -{% block body %} -

Commandes

- - - - - - - - - - - - - - - - - - - - -
Id{{ commande.id }}
DateHeure{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }}
Statut{{ commande.Statut ? 'Yes' : 'No' }}
Total{{ commande.Total }}
- - back to list - - edit - - {{ include('commandes/_delete_form.html.twig') }} -{% endblock %} diff --git a/templates/details_commande/index.html.twig b/templates/details_commande/index.html.twig index 79715cf..9d02dfe 100644 --- a/templates/details_commande/index.html.twig +++ b/templates/details_commande/index.html.twig @@ -3,7 +3,7 @@ {% block title %}DetailsCommande index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/details_commande/new.html.twig b/templates/details_commande/new.html.twig index ad45911..35d741f 100644 --- a/templates/details_commande/new.html.twig +++ b/templates/details_commande/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New DetailsCommande{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/details_commande/show.html.twig b/templates/details_commande/show.html.twig index 88478e5..bf5f533 100644 --- a/templates/details_commande/show.html.twig +++ b/templates/details_commande/show.html.twig @@ -1,7 +1,7 @@ {% extends 'base.html.twig' %} {% block title %}DetailsCommande{% endblock %} - + {% block body %}

DetailsCommande

diff --git a/templates/plats/index.html.twig b/templates/plats/index.html.twig index a7d2eff..b89f590 100644 --- a/templates/plats/index.html.twig +++ b/templates/plats/index.html.twig @@ -2,7 +2,7 @@ {% block title %}Plats index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/plats/new.html.twig b/templates/plats/new.html.twig index 460014a..3854dad 100644 --- a/templates/plats/new.html.twig +++ b/templates/plats/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Plats{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/reductions/index.html.twig b/templates/reductions/index.html.twig index a9788fd..e0bfc22 100644 --- a/templates/reductions/index.html.twig +++ b/templates/reductions/index.html.twig @@ -2,7 +2,7 @@ {% block title %}Reductions index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/reductions/new.html.twig b/templates/reductions/new.html.twig index fd042d1..bbb1a60 100644 --- a/templates/reductions/new.html.twig +++ b/templates/reductions/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Reductions{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/reservations/new.html.twig b/templates/reservations/new.html.twig index cd5fe18..6aa5e66 100644 --- a/templates/reservations/new.html.twig +++ b/templates/reservations/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Reservations{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/statut_commandes/index.html.twig b/templates/statut_commandes/index.html.twig index e5d445e..9527bb5 100644 --- a/templates/statut_commandes/index.html.twig +++ b/templates/statut_commandes/index.html.twig @@ -3,7 +3,7 @@ {% block title %}StatutCommandes index{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/statut_commandes/new.html.twig b/templates/statut_commandes/new.html.twig index 11b3a2c..558ccc6 100644 --- a/templates/statut_commandes/new.html.twig +++ b/templates/statut_commandes/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New StatutCommandes{% endblock %} {% block stylesheets %} - + {% endblock %} {% block body %} diff --git a/templates/statut_commandes/show.html.twig b/templates/statut_commandes/show.html.twig index e42d6a3..632355f 100644 --- a/templates/statut_commandes/show.html.twig +++ b/templates/statut_commandes/show.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}StatutCommandes{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

StatutCommandes

diff --git a/templates/statut_tables/show.html.twig b/templates/statut_tables/show.html.twig index 2b395af..2503d7b 100644 --- a/templates/statut_tables/show.html.twig +++ b/templates/statut_tables/show.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}StatutTables{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

StatutTables

@@ -13,7 +16,7 @@ Libellé - {{ statut_table.Libellé }} + {{ statut_table.Libelle }} diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index 7978437..5ea4688 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -2,7 +2,7 @@ {% block title %}New Tables{% endblock %} {% block stylesheets %} - + {% endblock %}