diff --git a/public/css/Compte/GestionUser.css b/public/css/Compte/GestionUser.css index 5fe2b0a..323de72 100644 --- a/public/css/Compte/GestionUser.css +++ b/public/css/Compte/GestionUser.css @@ -1,3 +1,7 @@ +html{ + font-family: "Quicksand Light"; !important; +} + #container_modal { background-color: white; margin-left: 20%; /* Centrage vertical */ diff --git a/public/css/Compte/index.css b/public/css/Compte/index.css index 37dd955..4073693 100644 --- a/public/css/Compte/index.css +++ b/public/css/Compte/index.css @@ -1,3 +1,7 @@ + +html{ + font-family: "Quicksand Light"; !important; +} /* Style pour chaque élément d'information de l'utilisateur */ .user-info-item { display: flex; diff --git a/public/css/ControllerVues/edit.css b/public/css/ControllerVues/edit.css index 0ee0756..f83a288 100644 --- a/public/css/ControllerVues/edit.css +++ b/public/css/ControllerVues/edit.css @@ -1,4 +1,6 @@ - +html{ + font-family: "Quicksand Light"; !important; +} /* Page container */ .page-container { width: 100%; diff --git a/public/css/ControllerVues/list.css b/public/css/ControllerVues/list.css index 37866e5..3d5af65 100644 --- a/public/css/ControllerVues/list.css +++ b/public/css/ControllerVues/list.css @@ -1,36 +1,29 @@ - - -/*h1 {*/ -/* text-align: center;*/ -/* color: #db5559;*/ -/* margin-bottom: 20px;*/ -/*}*/ - /* Table styles */ -.table { +table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background-color: #fff; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + font-family: sans-serif; } -.table th, .table td { +table th, table td { padding: 12px; text-align: left; border: 1px solid #ddd; } -.table th { +table th { background-color: #db5559; color: white; + font-weight: bold; } -.table tr:nth-child(even) { +table tr:nth-child(even) { background-color: #f2f2f2; } -.table tr:hover { +table tr:hover { background-color: #ddd; } @@ -42,7 +35,7 @@ a { } a:hover { - color: #38538e; + color: white; text-decoration: underline; } @@ -64,8 +57,25 @@ a[href*="app_clients_new"]:hover { } /* Empty table row message */ -.table td[colspan="6"] { +table td[colspan="6"] { text-align: center; font-style: italic; color: #666; } + +/* Button styles */ +.btn-container { + display: flex; + justify-content: center; + margin-bottom: 20px; +} + +.btn { + padding: 5px 10px; + text-decoration: none; + color: white; + background-color: #db5559; + border-radius: 5px; + font-weight: bold; + margin-top: 25px; +} diff --git a/public/css/ControllerVues/new.css b/public/css/ControllerVues/new.css index 5f888aa..0ce956f 100644 --- a/public/css/ControllerVues/new.css +++ b/public/css/ControllerVues/new.css @@ -1,4 +1,6 @@ - +html{ + font-family: "Quicksand Light"; !important; +} /* Page container */ .page-container { width: 100%; diff --git a/public/css/GestionUtilisateurs/GestionUtilisateurs.css b/public/css/GestionUtilisateurs/GestionUtilisateurs.css index b5957a1..c6c6322 100644 --- a/public/css/GestionUtilisateurs/GestionUtilisateurs.css +++ b/public/css/GestionUtilisateurs/GestionUtilisateurs.css @@ -8,3 +8,6 @@ height: 100%; /* Hauteur du contenu de la modal */ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); } +html{ + font-family: "Quicksand Light"; !important; +} diff --git a/public/css/Index/index.css b/public/css/Index/index.css index f09f4d3..7b2c784 100644 --- a/public/css/Index/index.css +++ b/public/css/Index/index.css @@ -1,3 +1,7 @@ +html{ + font-family: "Quicksand Light"; !important; +} + .top-bar { background-color: #db5559; width: calc(100% - 18%); /*Calcule la totalité de l'écran - le left-background */ @@ -10,21 +14,10 @@ align-items: center; padding: 0 20px; color: white; - font-size: 18px; + font-size: 16px; box-sizing: border-box; /* Inclut le padding dans la largeur totale */ } - -.user-role { - background-color: white; - color: black; - padding: 10px 15px; - font-weight: bold; - overflow: hidden; -} - - - .left-background { background-color: #db5559; width: 18%; @@ -34,7 +27,6 @@ left: 0; display: flex; flex-direction: column; - justify-content: space-between; } @@ -51,18 +43,17 @@ ul { } li { - padding-bottom: 30px; + padding-bottom: 20px; } .btn-custom { background-color: #FFFFFF; color: black; - padding: 15px 40px; + padding: 15px; font-size: 16px; font-weight: bold; cursor: pointer; display: inline-block; - border-right: 5px solid #db5559; border-left: 5px solid #db5559; } @@ -88,8 +79,6 @@ li { .Information-perso { display: flex; justify-content: space-between; - padding: 20px; - margin-top: auto; } .btn-info-compte, .btn-info-exit { @@ -104,12 +93,12 @@ li { .btn-info-compte { width: 50%; - height: 30px; + height: 20px; } .btn-info-exit { width: 10%; - height: 30px; + height: 20px; } /* Style pour la modal (cachée par défaut) */ diff --git a/public/js/GestionMenu/GestionMenu.js b/public/js/GestionMenu/GestionMenu.js new file mode 100644 index 0000000..679f140 --- /dev/null +++ b/public/js/GestionMenu/GestionMenu.js @@ -0,0 +1,77 @@ +document.querySelector('.btn-gestion-menu').addEventListener('click', function(event) { + event.preventDefault(); + + document.getElementById('container_modal'); + + fetch('/plats') + .then(response => { + if (!response.ok) { + throw new Error('Erreur de chargement de la section Promotions'); + } + return response.text(); + }) + .then(html => { + // Insérer le HTML dans le conteneur et l'afficher + container_modal.innerHTML = html; + container_modal.style.display = 'block'; + }) + .catch(error => { + console.error('Erreur:', error); + }); +}); + +function addPlats (event) { + document.getElementById('container_modal'); + + fetch(`/plats/new`) + .then(response => { + return response.text(); + }) + .then(html => { + // Insérer le HTML dans le conteneur et l'afficher + container_modal.innerHTML = html; + container_modal.style.display = 'block'; + }) + .catch(error => { + console.error('Erreur:', error); + }); +} + + +function updatePromotion (event) { + document.getElementById('container_modal'); + const reductionsIdString = event.getAttribute('data-id'); + let reductionsId = parseInt(reductionsIdString); + + fetch(`/plats/${platsId}/edit`) + .then(response => { + return response.text(); + }) + .then(html => { + // Insérer le HTML dans le conteneur et l'afficher + container_modal.innerHTML = html; + container_modal.style.display = 'block'; + }) + .catch(error => { + console.error('Erreur:', error); + }); +} + +function deletePromotion (event) { + document.getElementById('container_modal'); + const reductionsIdString = event.getAttribute('data-id'); + let reductionsId = parseInt(reductionsIdString); + + fetch(`/reductions/${reductionsId}`) + .then(response => { + return response.text(); + }) + .then(html => { + // Insérer le HTML dans le conteneur et l'afficher + container_modal.innerHTML = html; + container_modal.style.display = 'block'; + }) + .catch(error => { + console.error('Erreur:', error); + }); +} \ No newline at end of file diff --git a/src/Form/ClientsType.php b/src/Form/ClientsType.php index cd01f5a..4444b85 100644 --- a/src/Form/ClientsType.php +++ b/src/Form/ClientsType.php @@ -23,12 +23,9 @@ class ClientsType extends AbstractType 'class' => Tables::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) - ->add('Commandes', EntityType::class, [ - 'class' => Commandes::class, - 'choice_label' => 'id', - 'multiple' => true, - ]) + ; } diff --git a/src/Form/CommandesType.php b/src/Form/CommandesType.php index 5dcc39b..d079017 100644 --- a/src/Form/CommandesType.php +++ b/src/Form/CommandesType.php @@ -25,15 +25,17 @@ class CommandesType extends AbstractType 'class' => Clients::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ->add('plats', EntityType::class, [ 'class' => Plats::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ->add('StatutCommande', EntityType::class, [ 'class' => StatutCommandes::class, - 'choice_label' => 'id', + 'choice_label' => 'libelle', ]) ; } diff --git a/src/Form/ReservationsType.php b/src/Form/ReservationsType.php index 8a59b2b..d6b4e99 100644 --- a/src/Form/ReservationsType.php +++ b/src/Form/ReservationsType.php @@ -27,6 +27,7 @@ class ReservationsType extends AbstractType 'class' => Utilisateurs::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ; } diff --git a/src/Form/TablesType.php b/src/Form/TablesType.php index ff62602..f4a3d05 100644 --- a/src/Form/TablesType.php +++ b/src/Form/TablesType.php @@ -19,11 +19,13 @@ class TablesType extends AbstractType 'class' => Clients::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ->add('utilisateurs', EntityType::class, [ 'class' => Utilisateurs::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ; } diff --git a/templates/base.html.twig b/templates/base.html.twig index abbbe3c..baf9c01 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -1,26 +1,168 @@ - - - {% block title %}Welcome!{% endblock %} - - - - -{# bootstrap#} -{# #} + + + {% block title %}Welcome!{% endblock %} + + + + + {# bootstrap#} + {# #} - {% block stylesheets %} - {% endblock %} + {% block stylesheets %} + + + + + {% endblock %} - {% block javascripts %} - {% block importmap %}{{ importmap('app') }}{% endblock %} - {% endblock %} - - - {% block body %}{% endblock %} +{# {% block javascripts %}#} +{# #} +{# #} +{# #} +{# #} +{# #} +{# {% block importmap %}{{ importmap('app') }}{% endblock %}#} +{# {% endblock %}#} + + +{% block body %} + + + +
+
+ Bonjour, {{ app.user.prenom }} +
+
+ + {{ ux_icon('ph:user-circle-fill') }} + Compte + + +
+
+ + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} +
+ +{% block container_modal %} +
+ +
+{% endblock %} + + + + + +{% endblock %} {# bootstrap#} - {# #} +{# #} {# #} - + diff --git a/templates/clients/edit.html.twig b/templates/clients/edit.html.twig index bea3e03..1a6a7f1 100644 --- a/templates/clients/edit.html.twig +++ b/templates/clients/edit.html.twig @@ -2,7 +2,25 @@ {% block title %}Modifier Client{% endblock %} -{% block body %} +{% block head %} + + + + + +{% endblock %} + +{% block stylesheets %} + + + + + +{% endblock %} + +{% block container_modal %} + +

Modifier Client

{{ include('clients/_form.html.twig', {'button_label': 'Mettre à jour'}) }} @@ -10,4 +28,5 @@ Retour à la liste {{ include('clients/_delete_form.html.twig') }} +
{% endblock %} diff --git a/templates/clients/index.html.twig b/templates/clients/index.html.twig index 9eeb216..e78988b 100644 --- a/templates/clients/index.html.twig +++ b/templates/clients/index.html.twig @@ -1,11 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Clients index{% endblock %} +{% block title %}Client index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + {% endblock %} -{% block body %} + +{% block container_modal %} +

Clients index

@@ -44,4 +57,5 @@
Créer un nouveau client +
{% endblock %} diff --git a/templates/clients/new.html.twig b/templates/clients/new.html.twig index 16b0079..cd1332f 100644 --- a/templates/clients/new.html.twig +++ b/templates/clients/new.html.twig @@ -1,14 +1,29 @@ {% extends 'base.html.twig' %} -{% block title %}Nouveau client{% endblock %} -{% block stylesheets %} - +{% block title %}Tables index{% endblock %} +{% block head %} + + + + + {% endblock %} -{% block body %} + +{% block stylesheets %} + + + + +{% endblock %} + +{% block container_modal %} + +

Créer un client

{{ include('clients/_form.html.twig') }} Retour à la liste +
{% endblock %} diff --git a/templates/commandes/edit.html.twig b/templates/commandes/edit.html.twig index d5038f3..38ea50c 100644 --- a/templates/commandes/edit.html.twig +++ b/templates/commandes/edit.html.twig @@ -1,15 +1,32 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Commande{% endblock %} +{% block title %}Tables index{% endblock %} -{% block body %} +{% block head %} + + + + + +{% endblock %} + +{% block stylesheets %} + + + + + +{% endblock %} + +{% block container_modal %} + +

Modifier Commande

{{ include('commandes/_form.html.twig', {'button_label': 'Mettre à jour'}) }} Retour à la liste - - +
{% endblock %} {% block javascripts %} diff --git a/templates/commandes/index.html.twig b/templates/commandes/index.html.twig index 1ccd523..f3ffffa 100644 --- a/templates/commandes/index.html.twig +++ b/templates/commandes/index.html.twig @@ -1,45 +1,60 @@ {% extends 'base.html.twig' %} {% block title %}Commandes index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + {% endblock %} -{% block body %} -

Commandes index

- - - - - - - - - - - - {% for commande in commandes %} - - - - - - - - {% else %} - - - - {% endfor %} - -
IdDateHeureStatutTotalactions
{{ commande.id }}{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }}{{ commande.Statut ? 'Yes' : 'No' }}{{ commande.Total }} -
- - {{ include('commandes/_delete_form.html.twig') }} -
+{% block container_modal %} +
+

Commandes index

- -
pas de commande crée
- + + + + + + + + + + + + {% for commande in commandes %} + + + + + + + + {% else %} + + + + {% endfor %} + +
IdDateHeureStatutTotalactions
{{ commande.id }}{{ commande.DateHeure ? commande.DateHeure|date('Y-m-d H:i:s') : '' }}{{ commande.Statut ? 'Yes' : 'No' }}{{ commande.Total }} +
+ + {{ include('commandes/_delete_form.html.twig') }} +
+ + Modifier +
pas de commande crée
+ + Créer une nouvelle commande + {% endblock %} diff --git a/templates/commandes/new.html.twig b/templates/commandes/new.html.twig index fb9b259..0104be5 100644 --- a/templates/commandes/new.html.twig +++ b/templates/commandes/new.html.twig @@ -1,15 +1,29 @@ {% extends 'base.html.twig' %} -{% block title %}Nouvelle commande{% endblock %} -{% block stylesheets %} - +{% block title %}Tables index{% endblock %} +{% block head %} + + + + + {% endblock %} -{% block body %} +{% block stylesheets %} + + + + +{% endblock %} + +{% block container_modal %} + +

Créer une commande

{{ include('commandes/_form.html.twig') }} Retour à la liste +
{% endblock %} diff --git a/templates/index/admin.html.twig b/templates/index/admin.html.twig index 3f4472a..e6833da 100644 --- a/templates/index/admin.html.twig +++ b/templates/index/admin.html.twig @@ -10,130 +10,11 @@ {% endblock %} {% block stylesheets %} + + {% endblock %} -{% block body %} - - - -
-
- Bonjour, {{ app.user.prenom }} -
-
- - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
-
- {{ ux_icon('ph:user-circle-fill') }} - Compte -
- -
-
- -
- -
- - - - - -{% endblock %} - -{% block javascripts %} - - - - - -{% endblock %} \ No newline at end of file diff --git a/templates/plats/edit.html.twig b/templates/plats/edit.html.twig index b763493..d9a1dde 100644 --- a/templates/plats/edit.html.twig +++ b/templates/plats/edit.html.twig @@ -1,21 +1,41 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Plat{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} {% block stylesheets %} - + + + + + {% endblock %} -{% block body %} -
-

Modifier Plat

+{% block container_modal %} - {{ include('plats/_form.html.twig', {'button_label': 'Mettre à jour'}) }} +
+
+

Modifier Plat

-
- Retour à la liste + {{ include('plats/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + + + + {{ include('plats/_delete_form.html.twig') }}
- - {{ include('plats/_delete_form.html.twig') }}
+ {% endblock %} + + + + diff --git a/templates/plats/index.html.twig b/templates/plats/index.html.twig index d6777bb..9ca141c 100644 --- a/templates/plats/index.html.twig +++ b/templates/plats/index.html.twig @@ -1,15 +1,30 @@ {% extends 'base.html.twig' %} -{% block title %}Plats index{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + + {% endblock %} -{% block body %} -

Plats index

- - +{% block container_modal %} + +
+

Plats index

+ +
+ @@ -20,32 +35,37 @@ - - - {% for plat in plats %} - - - - - - - - - - - {% else %} - - - - {% endfor %} - -
Id NomNb_de_commande actions
{{ plat.id }}{{ plat.Nom }}{{ plat.Description }}{{ plat.Prix }}{{ plat.Categorie }}{{ plat.Statut ? 'Yes' : 'No' }}{{ plat.NbDeCommande }} -
- - {{ include('plats/_delete_form.html.twig') }} -
- Modifier -
Aucun enregistrement trouvé
+ + + {% for plat in plats %} + + {{ plat.id }} + {{ plat.Nom }} + {{ plat.Description }} + {{ plat.Prix }} + {{ plat.Categorie }} + {{ plat.Statut ? 'Yes' : 'No' }} + {{ plat.NbDeCommande }} + +
+ + {{ include('plats/_delete_form.html.twig') }} +
+ Modifier + + + {% else %} + + Aucun enregistrement trouvé + + {% endfor %} + + + + Créer un menu +
- Créer un nouveau plat {% endblock %} + + + diff --git a/templates/plats/new.html.twig b/templates/plats/new.html.twig index 7c091ad..221bba9 100644 --- a/templates/plats/new.html.twig +++ b/templates/plats/new.html.twig @@ -1,14 +1,34 @@ {% extends 'base.html.twig' %} -{% block title %}New Plats{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + + + +{% endblock %} + +{% block container_modal %} + +
+

Créer un nouveau plat

+ + {{ include('plats/_form.html.twig') }} + + Retour à la liste +
{% endblock %} -{% block body %} -

Créer un nouveau plat

- {{ include('plats/_form.html.twig') }} - Retour à la liste -{% endblock %} + diff --git a/templates/reductions/edit.html.twig b/templates/reductions/edit.html.twig index bab0c4d..38cfb25 100644 --- a/templates/reductions/edit.html.twig +++ b/templates/reductions/edit.html.twig @@ -1,21 +1,41 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Réductions{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} {% block stylesheets %} - + + + + + {% endblock %} -{% block body %} -
-

Modifier une réduction

+{% block container_modal %} - {{ include('reductions/_form.html.twig', {'button_label': 'Mettre à jour'}) }} +
+
+

Modifier une réduction

-
- Retour à la liste + {{ include('reductions/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + + + + {{ include('reductions/_delete_form.html.twig') }}
- - {{ include('reductions/_delete_form.html.twig') }}
+ {% endblock %} + + + + diff --git a/templates/reductions/index.html.twig b/templates/reductions/index.html.twig index 600d45b..ee999f6 100644 --- a/templates/reductions/index.html.twig +++ b/templates/reductions/index.html.twig @@ -1,15 +1,30 @@ {% extends 'base.html.twig' %} -{% block title %}Reductions index{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + + {% endblock %} -{% block body %} -

Reductions index

- - +{% block container_modal %} + +
+

Reductions index

+ +
+ @@ -20,36 +35,37 @@ - - - {% for reduction in reductions %} - - - - - - - - - - - {% else %} - - - - {% endfor %} - -
Id DescriptionDateFin actions
{{ reduction.id }}{{ reduction.Description }}{{ reduction.Prix }}{{ reduction.Pourcentage }}{{ reduction.MontantFixe }}{{ reduction.DateDebut ? reduction.DateDebut|date('Y-m-d H:i:s') : '' }}{{ reduction.DateFin ? reduction.DateFin|date('Y-m-d H:i:s') : '' }} -
- - {{ include('reductions/_delete_form.html.twig') }} -
- -
Aucun enregistrement trouvé
+ + + {% for reduction in reductions %} + + {{ reduction.id }} + {{ reduction.Description }} + {{ reduction.Prix }} + {{ reduction.Pourcentage }} + {{ reduction.MontantFixe }} + {{ reduction.DateDebut ? reduction.DateDebut|date('Y-m-d H:i:s') : '' }} + {{ reduction.DateFin ? reduction.DateFin|date('Y-m-d H:i:s') : '' }} + +
+ + {{ include('reductions/_delete_form.html.twig') }} +
+ Modifier + + + {% else %} + + Aucun enregistrement trouvé + + {% endfor %} + + + + Créer une réduction +
- {% endblock %} -{% block javascripts %} - -{% endblock %} \ No newline at end of file + + diff --git a/templates/reductions/new.html.twig b/templates/reductions/new.html.twig index 13723a3..50557b6 100644 --- a/templates/reductions/new.html.twig +++ b/templates/reductions/new.html.twig @@ -1,14 +1,35 @@ {% extends 'base.html.twig' %} -{% block title %}Nouvelle reduction{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + + + +{% endblock %} + +{% block container_modal %} + +
+

Créer une Reduction

+ + {{ include('reductions/_form.html.twig') }} + + Retour à la liste +
{% endblock %} -{% block body %} -

Créer une Reduction

- {{ include('reductions/_form.html.twig') }} - Retour à la liste -{% endblock %} + + diff --git a/templates/reservations/edit.html.twig b/templates/reservations/edit.html.twig index 320a151..1483f13 100644 --- a/templates/reservations/edit.html.twig +++ b/templates/reservations/edit.html.twig @@ -1,12 +1,25 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Réservation{% endblock %} +{% block title %}Tables index{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} -{% block body %} +{% block stylesheets %} + + + + + +{% endblock %} + +{% block container_modal %} +

Modifier Réservation

@@ -18,4 +31,5 @@ {{ include('reservations/_delete_form.html.twig') }}
+
{% endblock %} diff --git a/templates/reservations/index.html.twig b/templates/reservations/index.html.twig index c2be21a..b0ac723 100644 --- a/templates/reservations/index.html.twig +++ b/templates/reservations/index.html.twig @@ -1,11 +1,24 @@ {% extends 'base.html.twig' %} {% block title %}Reservations index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + {% endblock %} -{% block body %} + +{% block container_modal %} +

Reservations index

@@ -40,4 +53,5 @@
Créer une réservation +
{% endblock %} diff --git a/templates/reservations/new.html.twig b/templates/reservations/new.html.twig index f33c62a..3a8a5b7 100644 --- a/templates/reservations/new.html.twig +++ b/templates/reservations/new.html.twig @@ -1,14 +1,29 @@ {% extends 'base.html.twig' %} -{% block title %}New Reservations{% endblock %} -{% block stylesheets %} - +{% block title %}Tables index{% endblock %} +{% block head %} + + + + + {% endblock %} -{% block body %} + +{% block stylesheets %} + + + + + +{% endblock %} + +{% block container_modal %} +

Créer une reservation

{{ include('reservations/_form.html.twig') }} Retour à la liste +
{% endblock %} diff --git a/templates/tables/edit.html.twig b/templates/tables/edit.html.twig index 6447b90..9ec9de9 100644 --- a/templates/tables/edit.html.twig +++ b/templates/tables/edit.html.twig @@ -1,21 +1,38 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Tables{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} {% block stylesheets %} - + + + + + {% endblock %} -{% block body %} -
-

Modifier Tables

+{% block container_modal %} +
+
+

Modifier Tables

- {{ include('tables/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + {{ include('tables/_form.html.twig', {'button_label': 'Mettre à jour'}) }} -
- Retour à la liste + + + {{ include('tables/_delete_form.html.twig') }}
- - {{ include('tables/_delete_form.html.twig') }}
+ {% endblock %} + + diff --git a/templates/tables/index.html.twig b/templates/tables/index.html.twig index 84979b9..a0af7b4 100644 --- a/templates/tables/index.html.twig +++ b/templates/tables/index.html.twig @@ -1,43 +1,57 @@ {% extends 'base.html.twig' %} {% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} + {% block stylesheets %} - + + + {% endblock %} -{% block body %} -

Tables index

- - +{% block container_modal %} + +
+

Tables index

+ +
+ - - - {% for table in tables %} - - - - - {% else %} - - - - {% endfor %} - -
Id actions
{{ table.id }} -
- - {{ include('tables/_delete_form.html.twig') }} -
- Modifier -
Aucun enregistrement trouvé
+ + + {% for table in tables %} + + {{ table.id }} + +
+ + {{ include('tables/_delete_form.html.twig') }} +
+ Modifier + + + {% else %} + + Aucun enregistrement trouvé + + {% endfor %} + + + + Créer une tables +
- {% endblock %} -{% block javascripts %} - -{% endblock %} + diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index c3f5994..4ec31e3 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -1,22 +1,37 @@ {% extends 'base.html.twig' %} -{% block title %}Create New Table{% endblock %} +{% block title %}Tables index{% endblock %} + +{% block head %} + + + + + +{% endblock %} {% block stylesheets %} - - + + + + {% endblock %} -{% block body %} -
-

Créer une nouvelle Table

+{% block container_modal %} -
- {{ include('tables/_form.html.twig') }} -
+
+
+

Créer une nouvelle Table

-
+ {% endblock %} + diff --git a/templates/user/add.html.twig b/templates/user/add.html.twig index d349e1d..4405e97 100644 --- a/templates/user/add.html.twig +++ b/templates/user/add.html.twig @@ -1,101 +1,123 @@ {% extends 'base.html.twig' %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} -{% block title %}Nouvelle Utilisateur{% endblock %} +{% block container_modal %} -{% block body %} -
-

Nouvelle Utilisateur ! ✅

+
+
+

Nouvelle Utilisateur ! ✅

- {{ form_start(registrationForm) }} - {{ form_errors(registrationForm) }} + {{ form_start(registrationForm) }} + {{ form_errors(registrationForm) }} -
- {{ form_row(registrationForm.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }} -
-
- {{ form_row(registrationForm.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }} -
-
- {{ form_row(registrationForm.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }} -
-
- {{ form_row(registrationForm.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }} -
-
- {{ form_row(registrationForm.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }} -
-
- {{ form_row(registrationForm.Enregistrer, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }} -
+
+ {{ form_row(registrationForm.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }} +
+
+ {{ form_row(registrationForm.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }} +
+
+ {{ form_row(registrationForm.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }} +
+
+ {{ form_row(registrationForm.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }} +
+
+ {{ form_row(registrationForm.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }} +
+
+ {{ form_row(registrationForm.Enregistrer, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }} +
- {{ form_end(registrationForm) }} + {{ form_end(registrationForm) }} +
+ + {% block stylesheets %} + + + + + + + {% endblock %} + {% endblock %} + + + + + diff --git a/templates/user/list.html.twig b/templates/user/list.html.twig index 0a88997..eca6336 100644 --- a/templates/user/list.html.twig +++ b/templates/user/list.html.twig @@ -1,88 +1,62 @@ {% extends 'base.html.twig' %} -{% block title %}Liste Utilisateur{% endblock %} +{% block title %}Tables index{% endblock %} -{% block body %} - - -
-

Liste des Utilisateurs ! ✅

- - - - - - - - - - - - - {% for utilisateur in utilisateurs %} - - - - - - - - {% else %} - - - - {% endfor %} - -
IDNomPrenomMailRoles
{{ utilisateur.id }}{{ utilisateur.nom }}{{ utilisateur.prenom }}{{ utilisateur.UserIdentifier }}{{ utilisateur.RolesAsString }}
Aucun utilisateur trouvé.
-
- + + + + + + + + + + + + {% for utilisateur in utilisateurs %} + + + + + + + + {% else %} + + + + {% endfor %} + +
IDNomPrenomMailRoles
{{ utilisateur.id }}{{ utilisateur.nom }}{{ utilisateur.prenom }}{{ utilisateur.UserIdentifier }}{{ utilisateur.RolesAsString }}
Aucun utilisateur trouvé.
+ +
-
+ {% endblock %} -{% block javascripts %} - -{% endblock %} + + + diff --git a/templates/user/update.html.twig b/templates/user/update.html.twig index df18571..ff1a6ed 100644 --- a/templates/user/update.html.twig +++ b/templates/user/update.html.twig @@ -1,77 +1,18 @@ {% extends 'base.html.twig' %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} -{% block title %}Nouvelle Utilisateur{% endblock %} +{% block container_modal %} -{% block body %} -
+

Modifier Utilisateurs ! ✅

{{ form_start(form) }} @@ -102,4 +43,81 @@ Annuler
+ + {% block stylesheets %} + + + + + + + {% endblock %} + {% endblock %} + + +