Compare commits
No commits in common. "652ed0f23f8c4354f58f82c3ed4f2cfed18a7400" and "c3ff97cd6ddc9a44620545fb0b37d03469e6448c" have entirely different histories.
652ed0f23f
...
c3ff97cd6d
0
public/css/show.css
Normal file
0
public/css/show.css
Normal file
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,7 +42,13 @@ 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
|
||||
|
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,6 +42,13 @@ 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
|
||||
|
@ -42,7 +42,13 @@ 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}Clients index{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
23
templates/commande/index.html.twig
Normal file
23
templates/commande/index.html.twig
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Hello CommandeController!{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<style>
|
||||
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
|
||||
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
|
||||
</style>
|
||||
|
||||
<div class="example-wrapper">
|
||||
<h1>Hello {{ controller_name }}! ✅</h1>
|
||||
|
||||
This friendly message is coming from:
|
||||
<ul>
|
||||
<li>Your controller at <code>/home/bayardk@stsio.lan/Documents/FestinHegre/src/Controller/CommandeController.php</code></li>
|
||||
<li>Your template at <code>/home/bayardk@stsio.lan/Documents/FestinHegre/templates/commande/index.html.twig</code></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}Commandes index{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
@ -26,11 +26,7 @@
|
||||
<td>{{ commande.Statut ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ commande.Total }}</td>
|
||||
<td>
|
||||
<form method="post" action="{{ path('app_commandes_delete', {'id': commande.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ commande.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
|
||||
<a href="{{ path('app_commandes_show', {'id': commande.id}) }}">show</a>
|
||||
<a href="{{ path('app_commandes_edit', {'id': commande.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New Commandes{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
34
templates/commandes/show.html.twig
Normal file
34
templates/commandes/show.html.twig
Normal file
@ -0,0 +1,34 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Commandes{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Commandes</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ commande.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DateHeure</th>
|
||||
<td>{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Statut</th>
|
||||
<td>{{ commande.Statut ? 'Yes' : 'No' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Total</th>
|
||||
<td>{{ commande.Total }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_commandes_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_commandes_edit', {'id': commande.id}) }}">edit</a>
|
||||
|
||||
{{ include('commandes/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
@ -3,7 +3,7 @@
|
||||
{% block title %}DetailsCommande index{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New DetailsCommande{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}DetailsCommande{% endblock %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
{% block body %}
|
||||
<h1>DetailsCommande</h1>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}Plats index{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New Plats{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}Reductions index{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New Reductions{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New Reservations{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% block title %}StatutCommandes index{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New StatutCommandes{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
@ -1,10 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}StatutCommandes{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/show.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<h1>StatutCommandes</h1>
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}StatutTables{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/show.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
<h1>StatutTables</h1>
|
||||
|
||||
@ -16,7 +13,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Libellé</th>
|
||||
<td>{{ statut_table.Libelle }}</td>
|
||||
<td>{{ statut_table.Libellé }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{% block title %}New Tables{% endblock %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('css/new.css') }}"> <!-- Ajout du fichier CSS -->
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user