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 %} - - -
/home/bayardk@stsio.lan/Documents/FestinHegre/src/Controller/CommandeController.php
/home/bayardk@stsio.lan/Documents/FestinHegre/templates/commande/index.html.twig
Id | -{{ commande.id }} | -
---|---|
DateHeure | -{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }} | -
Statut | -{{ commande.Statut ? 'Yes' : 'No' }} | -
Total | -{{ commande.Total }} | -