diff --git a/templates/base.html.twig b/templates/base.html.twig index 3d4015e..fee15d3 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -11,14 +11,138 @@ {# #} {% block stylesheets %} + + + + {% endblock %} - {% block javascripts %} - {% block importmap %}{{ importmap('app') }}{% endblock %} - {% endblock %} +{# {% block javascripts %}#} +{# #} +{# #} +{# #} +{# #} +{# #} +{# {% block importmap %}{{ importmap('app') }}{% endblock %}#} +{# {% endblock %}#} -{% block body %}{% 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 + + +
+
+ +{% block container_modal %} +
+ +
+{% endblock %} + + + + + +{% endblock %} {# bootstrap#} {# #} {# #} diff --git a/templates/index/admin.html.twig b/templates/index/admin.html.twig index 8a7f8ef..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 f3b6c7b..d9a1dde 100644 --- a/templates/plats/edit.html.twig +++ b/templates/plats/edit.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Plat{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}
@@ -122,14 +34,6 @@
- {% block stylesheets %} - - - - - - {% endblock %} - {% endblock %} diff --git a/templates/plats/index.html.twig b/templates/plats/index.html.twig index e0cfa38..9ca141c 100644 --- a/templates/plats/index.html.twig +++ b/templates/plats/index.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Plats index{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}

Plats index

@@ -153,13 +65,6 @@ Créer un menu
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/plats/new.html.twig b/templates/plats/new.html.twig index 6a6e2ff..221bba9 100644 --- a/templates/plats/new.html.twig +++ b/templates/plats/new.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}New Plats{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}

Créer un nouveau plat

@@ -116,13 +28,6 @@ Retour à la liste
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/reductions/edit.html.twig b/templates/reductions/edit.html.twig index 10adb6f..38cfb25 100644 --- a/templates/reductions/edit.html.twig +++ b/templates/reductions/edit.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Modifier Réductions{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}
@@ -122,14 +34,6 @@
- {% block stylesheets %} - - - - - - {% endblock %} - {% endblock %} diff --git a/templates/reductions/index.html.twig b/templates/reductions/index.html.twig index 79a4ccb..ee999f6 100644 --- a/templates/reductions/index.html.twig +++ b/templates/reductions/index.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Promotion index{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}

Reductions index

@@ -153,13 +65,6 @@ Créer une réduction
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/reductions/new.html.twig b/templates/reductions/new.html.twig index 1279336..50557b6 100644 --- a/templates/reductions/new.html.twig +++ b/templates/reductions/new.html.twig @@ -1,112 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Nouvelle reduction{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}

Créer une Reduction

@@ -116,13 +28,6 @@ Retour à la liste
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/tables/edit.html.twig b/templates/tables/edit.html.twig index 93c11c2..9ec9de9 100644 --- a/templates/tables/edit.html.twig +++ b/templates/tables/edit.html.twig @@ -1,113 +1,24 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Tables{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% 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 - - -
-
+{% block stylesheets %} + + + + + +{% endblock %} +{% block container_modal %}

Modifier Tables

@@ -122,14 +33,6 @@
- {% block stylesheets %} - - - - - - {% endblock %} - {% endblock %} diff --git a/templates/tables/index.html.twig b/templates/tables/index.html.twig index a973bf3..a0af7b4 100644 --- a/templates/tables/index.html.twig +++ b/templates/tables/index.html.twig @@ -5,108 +5,19 @@ {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}

Tables index

@@ -138,15 +49,9 @@ - Créer une tables + Créer une tables
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} + diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index f81ede4..4ec31e3 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -1,112 +1,23 @@ {% extends 'base.html.twig' %} -{% block title %}Create New Table{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} -
- - {{ ux_icon('ph:user-circle-fill') }} - Compte - - -
-
+{% block container_modal %}
@@ -122,12 +33,5 @@
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/user/add.html.twig b/templates/user/add.html.twig index e7eeb3a..4405e97 100644 --- a/templates/user/add.html.twig +++ b/templates/user/add.html.twig @@ -1,112 +1,16 @@ {% extends 'base.html.twig' %} -{% block title %}Nouvelle Utilisateur{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% 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 - - -
-
+{% block container_modal %}
diff --git a/templates/user/list.html.twig b/templates/user/list.html.twig index 5398a81..eca6336 100644 --- a/templates/user/list.html.twig +++ b/templates/user/list.html.twig @@ -1,112 +1,23 @@ {% extends 'base.html.twig' %} -{% block title %}Liste Utilisateur{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
+{% block stylesheets %} + + + + +{% endblock %} - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} - -
+{% block container_modal %}
@@ -144,13 +55,6 @@
- {% block stylesheets %} - - - - - {% endblock %} - {% endblock %} diff --git a/templates/user/update.html.twig b/templates/user/update.html.twig index 92e4dfe..ff1a6ed 100644 --- a/templates/user/update.html.twig +++ b/templates/user/update.html.twig @@ -1,112 +1,16 @@ {% extends 'base.html.twig' %} -{% block title %}Nouvelle Utilisateur{% endblock %} +{% block title %}Tables index{% endblock %} {% block head %} - + {% endblock %} -{% block body %} - -
-
- Bonjour, {{ app.user.prenom }} -
-
- - -
- - {% if is_granted('ROLE_ADMIN') %} - - {% elseif is_granted('ROLE_CUISINIER') %} - - {% elseif is_granted('ROLE_SERVEUR') %} - - {% endif %} - -
+{% block container_modal %}

Modifier Utilisateurs ! ✅