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/templates/base.html.twig b/templates/base.html.twig index 88ca0eb..3d4015e 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -1,147 +1,26 @@ - - - {% block title %}Welcome!{% endblock %} - - - - + + + {% block title %}Welcome!{% endblock %} + + + + + {# bootstrap#} + {# #} + + {% block stylesheets %} + {% endblock %} + + {% block javascripts %} + {% block importmap %}{{ importmap('app') }}{% endblock %} + {% endblock %} + + +{% block body %}{% endblock %} {# bootstrap#} -{# #} - - {% block stylesheets %} - - - - {% endblock %} - - {% block javascripts %} - - - - - - {% block importmap %}{{ importmap('app') }}{% endblock %} - {% 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 %} -{# bootstrap#} - {# #} +{# #} {# #} - + diff --git a/templates/plats/edit.html.twig b/templates/plats/edit.html.twig index b763493..f3b6c7b 100644 --- a/templates/plats/edit.html.twig +++ b/templates/plats/edit.html.twig @@ -2,20 +2,136 @@ {% block title %}Modifier Plat{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} {% block body %} -
-

Modifier Plat

- - {{ include('plats/_form.html.twig', {'button_label': 'Mettre à jour'}) }} - -
- Retour à la liste + +
+
+ Bonjour, {{ app.user.prenom }}
- - {{ include('plats/_delete_form.html.twig') }}
+ + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} + +
+ +
+
+

Modifier Plat

+ + {{ include('plats/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + + + + {{ include('plats/_delete_form.html.twig') }} +
+
+ + {% block stylesheets %} + + + + + + {% endblock %} + {% endblock %} + + + + diff --git a/templates/plats/index.html.twig b/templates/plats/index.html.twig index 0720080..e0cfa38 100644 --- a/templates/plats/index.html.twig +++ b/templates/plats/index.html.twig @@ -150,7 +150,7 @@ - + Créer un menu
{% block stylesheets %} diff --git a/templates/plats/new.html.twig b/templates/plats/new.html.twig index 7c091ad..6a6e2ff 100644 --- a/templates/plats/new.html.twig +++ b/templates/plats/new.html.twig @@ -1,14 +1,129 @@ {% extends 'base.html.twig' %} {% block title %}New Plats{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} + {% block body %} -

Créer un nouveau plat

+ +
+
+ Bonjour, {{ app.user.prenom }} +
+
- {{ include('plats/_form.html.twig') }} + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} + +
+ +
+

Créer un nouveau plat

+ + {{ include('plats/_form.html.twig') }} + + Retour à la liste +
+ + {% block stylesheets %} + + + + + {% endblock %} - Retour à la liste {% endblock %} + + + diff --git a/templates/reductions/edit.html.twig b/templates/reductions/edit.html.twig index bab0c4d..10adb6f 100644 --- a/templates/reductions/edit.html.twig +++ b/templates/reductions/edit.html.twig @@ -2,20 +2,136 @@ {% block title %}Modifier Réductions{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} {% block body %} -
-

Modifier une réduction

- - {{ include('reductions/_form.html.twig', {'button_label': 'Mettre à jour'}) }} - -
- Retour à la liste + +
+
+ Bonjour, {{ app.user.prenom }}
- - {{ include('reductions/_delete_form.html.twig') }}
+ + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} + +
+ +
+
+

Modifier une réduction

+ + {{ include('reductions/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + + + + {{ include('reductions/_delete_form.html.twig') }} +
+
+ + {% block stylesheets %} + + + + + + {% endblock %} + {% endblock %} + + + + diff --git a/templates/reductions/index.html.twig b/templates/reductions/index.html.twig index aef0096..79a4ccb 100644 --- a/templates/reductions/index.html.twig +++ b/templates/reductions/index.html.twig @@ -139,7 +139,7 @@ {{ include('reductions/_delete_form.html.twig') }} - + Modifier {% else %} @@ -150,7 +150,7 @@ - + Créer une réduction
{% block stylesheets %} diff --git a/templates/reductions/new.html.twig b/templates/reductions/new.html.twig index 13723a3..1279336 100644 --- a/templates/reductions/new.html.twig +++ b/templates/reductions/new.html.twig @@ -1,14 +1,130 @@ {% extends 'base.html.twig' %} {% block title %}Nouvelle reduction{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} + {% block body %} -

Créer une Reduction

+ +
+
+ Bonjour, {{ app.user.prenom }} +
+
- {{ include('reductions/_form.html.twig') }} + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} + +
+ +
+

Créer une Reduction

+ + {{ include('reductions/_form.html.twig') }} + + Retour à la liste +
+ + {% block stylesheets %} + + + + + {% endblock %} - Retour à la liste {% endblock %} + + + + diff --git a/templates/tables/edit.html.twig b/templates/tables/edit.html.twig index 6447b90..93c11c2 100644 --- a/templates/tables/edit.html.twig +++ b/templates/tables/edit.html.twig @@ -2,20 +2,134 @@ {% block title %}Edit Tables{% endblock %} -{% block stylesheets %} - +{% block head %} + + + + + {% endblock %} {% block body %} -
-

Modifier Tables

- - {{ include('tables/_form.html.twig', {'button_label': 'Mettre à jour'}) }} - -
- Retour à la liste + +
+
+ Bonjour, {{ app.user.prenom }}
- - {{ include('tables/_delete_form.html.twig') }}
+ + +
+ + {% if is_granted('ROLE_ADMIN') %} + + {% elseif is_granted('ROLE_CUISINIER') %} + + {% elseif is_granted('ROLE_SERVEUR') %} + + {% endif %} + +
+ +
+
+

Modifier Tables

+ + {{ include('tables/_form.html.twig', {'button_label': 'Mettre à jour'}) }} + + + + {{ include('tables/_delete_form.html.twig') }} +
+
+ + {% block stylesheets %} + + + + + + {% endblock %} + {% endblock %} + + diff --git a/templates/tables/index.html.twig b/templates/tables/index.html.twig index d0d5b07..a973bf3 100644 --- a/templates/tables/index.html.twig +++ b/templates/tables/index.html.twig @@ -138,7 +138,7 @@ - + Créer une tables
{% block stylesheets %} diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index c3f5994..f81ede4 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -2,21 +2,132 @@ {% block title %}Create New Table{% endblock %} -{% block stylesheets %} - - +{% block head %} + + + + + {% endblock %} {% block body %} -
-

Créer une nouvelle Table

- -
- {{ include('tables/_form.html.twig') }} -
- -