Compare commits

...

14 Commits

Author SHA1 Message Date
c65179134c Merge remote-tracking branch 'refs/remotes/origin/feature/Back' into feature/Controller
# Conflicts:
#	templates/commandes/index.html.twig
#	templates/index/admin.html.twig
2025-03-31 14:41:55 +02:00
eba77e220d fix form avec expanded 2025-03-31 14:32:31 +02:00
bb35ba61c6 admin page commande + reservation
fix form client
2025-03-31 14:09:40 +02:00
f23c68bcff Css + admin button 2025-03-31 10:46:44 +02:00
ac6a59abdb Merge remote-tracking branch 'origin/develop' into feature/Back
# Conflicts:
#	public/css/ControllerVues/list.css
#	public/js/GestionMenu/GestionMenu.js
#	templates/index/admin.html.twig
#	templates/user/list.html.twig
2025-03-31 10:34:52 +02:00
945f2e1a97 css index 2025-03-31 10:20:22 +02:00
2c11e8f830 Maj base.html.twig 2025-03-31 10:08:28 +02:00
f1312c59d6 Suppresion des modals 2025-03-24 17:47:25 +01:00
f4f6489274 Suppression Modals, rajout et essaie de base.html.twig sur tout les page 2025-03-24 15:54:35 +01:00
de58b74eeb font-family 2025-03-24 14:50:57 +01:00
0dd438af9a Fix affichage index admin 2025-03-24 14:38:38 +01:00
8fb4b64ab5 Merge remote-tracking branch 'origin/develop' into feature/Index 2025-03-24 10:02:01 +01:00
9965cffecc Merge remote-tracking branch 'origin/develop' into feature/Index 2024-12-05 15:37:58 +01:00
a39b76f0af fix 2024-11-21 17:50:53 +01:00
35 changed files with 1065 additions and 635 deletions

View File

@ -1,3 +1,7 @@
html{
font-family: "Quicksand Light"; !important;
}
#container_modal { #container_modal {
background-color: white; background-color: white;
margin-left: 20%; /* Centrage vertical */ margin-left: 20%; /* Centrage vertical */

View File

@ -1,3 +1,7 @@
html{
font-family: "Quicksand Light"; !important;
}
/* Style pour chaque élément d'information de l'utilisateur */ /* Style pour chaque élément d'information de l'utilisateur */
.user-info-item { .user-info-item {
display: flex; display: flex;

View File

@ -1,4 +1,6 @@
html{
font-family: "Quicksand Light"; !important;
}
/* Page container */ /* Page container */
.page-container { .page-container {
width: 100%; width: 100%;

View File

@ -1,36 +1,29 @@
/*h1 {*/
/* text-align: center;*/
/* color: #db5559;*/
/* margin-bottom: 20px;*/
/*}*/
/* Table styles */ /* Table styles */
.table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #fff; 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; padding: 12px;
text-align: left; text-align: left;
border: 1px solid #ddd; border: 1px solid #ddd;
} }
.table th { table th {
background-color: #db5559; background-color: #db5559;
color: white; color: white;
font-weight: bold;
} }
.table tr:nth-child(even) { table tr:nth-child(even) {
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.table tr:hover { table tr:hover {
background-color: #ddd; background-color: #ddd;
} }
@ -42,7 +35,7 @@ a {
} }
a:hover { a:hover {
color: #38538e; color: white;
text-decoration: underline; text-decoration: underline;
} }
@ -64,8 +57,25 @@ a[href*="app_clients_new"]:hover {
} }
/* Empty table row message */ /* Empty table row message */
.table td[colspan="6"] { table td[colspan="6"] {
text-align: center; text-align: center;
font-style: italic; font-style: italic;
color: #666; 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;
}

View File

@ -1,4 +1,6 @@
html{
font-family: "Quicksand Light"; !important;
}
/* Page container */ /* Page container */
.page-container { .page-container {
width: 100%; width: 100%;

View File

@ -8,3 +8,6 @@
height: 100%; /* Hauteur du contenu de la modal */ height: 100%; /* Hauteur du contenu de la modal */
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
} }
html{
font-family: "Quicksand Light"; !important;
}

View File

@ -1,3 +1,7 @@
html{
font-family: "Quicksand Light"; !important;
}
.top-bar { .top-bar {
background-color: #db5559; background-color: #db5559;
width: calc(100% - 18%); /*Calcule la totalité de l'écran - le left-background */ width: calc(100% - 18%); /*Calcule la totalité de l'écran - le left-background */
@ -10,21 +14,10 @@
align-items: center; align-items: center;
padding: 0 20px; padding: 0 20px;
color: white; color: white;
font-size: 18px; font-size: 16px;
box-sizing: border-box; /* Inclut le padding dans la largeur totale */ 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 { .left-background {
background-color: #db5559; background-color: #db5559;
width: 18%; width: 18%;
@ -34,7 +27,6 @@
left: 0; left: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between;
} }
@ -51,18 +43,17 @@ ul {
} }
li { li {
padding-bottom: 30px; padding-bottom: 20px;
} }
.btn-custom { .btn-custom {
background-color: #FFFFFF; background-color: #FFFFFF;
color: black; color: black;
padding: 15px 40px; padding: 15px;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
border-right: 5px solid #db5559; border-right: 5px solid #db5559;
border-left: 5px solid #db5559; border-left: 5px solid #db5559;
} }
@ -88,8 +79,6 @@ li {
.Information-perso { .Information-perso {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 20px;
margin-top: auto;
} }
.btn-info-compte, .btn-info-exit { .btn-info-compte, .btn-info-exit {
@ -104,12 +93,12 @@ li {
.btn-info-compte { .btn-info-compte {
width: 50%; width: 50%;
height: 30px; height: 20px;
} }
.btn-info-exit { .btn-info-exit {
width: 10%; width: 10%;
height: 30px; height: 20px;
} }
/* Style pour la modal (cachée par défaut) */ /* Style pour la modal (cachée par défaut) */

View File

@ -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);
});
}

View File

@ -23,12 +23,9 @@ class ClientsType extends AbstractType
'class' => Tables::class, 'class' => Tables::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
->add('Commandes', EntityType::class, [
'class' => Commandes::class,
'choice_label' => 'id',
'multiple' => true,
])
; ;
} }

View File

@ -25,15 +25,17 @@ class CommandesType extends AbstractType
'class' => Clients::class, 'class' => Clients::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
->add('plats', EntityType::class, [ ->add('plats', EntityType::class, [
'class' => Plats::class, 'class' => Plats::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
->add('StatutCommande', EntityType::class, [ ->add('StatutCommande', EntityType::class, [
'class' => StatutCommandes::class, 'class' => StatutCommandes::class,
'choice_label' => 'id', 'choice_label' => 'libelle',
]) ])
; ;
} }

View File

@ -27,6 +27,7 @@ class ReservationsType extends AbstractType
'class' => Utilisateurs::class, 'class' => Utilisateurs::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
; ;
} }

View File

@ -19,11 +19,13 @@ class TablesType extends AbstractType
'class' => Clients::class, 'class' => Clients::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
->add('utilisateurs', EntityType::class, [ ->add('utilisateurs', EntityType::class, [
'class' => Utilisateurs::class, 'class' => Utilisateurs::class,
'choice_label' => 'id', 'choice_label' => 'id',
'multiple' => true, 'multiple' => true,
'expanded' => true,
]) ])
; ;
} }

View File

@ -11,14 +11,156 @@
{# <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">#} {# <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">#}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block javascripts %} {# {% block javascripts %}#}
{% block importmap %}{{ importmap('app') }}{% endblock %} {# <script src="{{ asset('js/Compte/CompteModal.js') }}" defer></script>#}
{% endblock %} {# <script src="{{ asset('js/GestionUtilisateurs/GestionUtilisateurs.js') }}" defer></script>#}
{# <script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script>#}
{# <script src="{{ asset('js/GestionTables/GestionTables.js') }}" defer></script>#}
{# <script src="{{ asset('js/GestionMenu/GestionMenu.js') }}" defer></script>#}
{# {% block importmap %}{{ importmap('app') }}{% endblock %}#}
{# {% endblock %}#}
</head> </head>
<body> <body>
{% block body %}{% endblock %} {% block body %}
<style>
</style>
<!-- Top Bar -->
<div class="top-bar">
<div>
Bonjour, {{ app.user.prenom }}
</div>
<div class="Information-perso">
<a href="{{ path('update-user', { 'id': app.user.id }) }}" class="btn-info-compte icon-container">
<i class="icon-medium"> {{ ux_icon('ph:user-circle-fill') }}</i>
<span>Compte</span>
</a>
<div class="btn-info-exit icon-container">
<a href="{{ path('app_logout') }}" class="icon-medium">
{{ ux_icon('iconamoon:exit-bold') }}
</a>
</div>
</div>
</div>
<!-- Left Menu -->
<div class="left-background">
<img class="LogoHegre" src="{{ asset('asset/image/LogoHegre.png') }}">
{% if is_granted('ROLE_ADMIN') %}
<div class="nav-bar">
<ul>
<li>
<a href="/user/list" class="btn-custom btn-gestion-utilisateurs icon-container">
<i class="icon-medium">{{ ux_icon('grommet-icons:group') }}</i>
<span>Gérer Utilisateur</span>
</a>
</li>
<li>
<a href="/clients" class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:people') }}</i>
<span>Gestion Client</span>
</a>
</li>
<li>
<a href="/tables" class="btn-custom btn-gestion-table icon-container">
<i class="icon-medium"> {{ ux_icon('ic:outline-table-bar') }}</i>
<span>Gérer Table</span>
</a>
</li>
<li>
<a href="/plats" class="btn-custom btn-gestion-menu icon-container">
<i class="icon-medium"> {{ ux_icon('bx:food-menu') }}</i>
<span>Gestion Menu</span>
</a>
</li>
<li>
<a href="/reductions" class="btn-custom btn-gestion-promotion icon-container">
<i class="icon-medium"> {{ ux_icon('lsicon:badge-promotion-outline') }}</i>
<span>Gestion Promotion</span>
</a>
</li>
<li>
<a href="/" class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('fluent-emoji-high-contrast:ten-oclock') }}</i>
<span>Voir tendances</span>
</a>
</li>
<li>
<a href="/commandes" class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:view-list') }}</i>
<span>Commandes</span>
</a>
</li>
<li>
<a href="/reservations" class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('fluent-mdl2:reservation-orders') }}</i>
<span>Réservation</span>
</a>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_CUISINIER') %}
<div class="nav-bar">
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:view-list') }}</i>
<span>Liste des commandes</span>
</div>
</li>
</ul>
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('grommet-icons:group') }}</i>
<span>Je sais pas encore</span>
</div>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_SERVEUR') %}
<div class="nav-bar">
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('fluent-mdl2:reservation-orders') }}</i>
<span>Réservation</span>
</div>
</li>
</ul>
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:view-list') }}</i>
<span>Commande</span>
</div>
</li>
</ul>
</div>
{% endif %}
</div>
{% block container_modal %}
<div id="container_modal">
<!-- Contenu par défaut, ou vous pouvez laisser vide -->
</div>
{% endblock %}
<script>
</script>
<!-- Include modals -->
{% endblock %}
{# bootstrap#} {# bootstrap#}
{# <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>#} {# <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>#}
{# <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script> </body>#} {# <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script> </body>#}

View File

@ -2,7 +2,25 @@
{% block title %}Modifier Client{% endblock %} {% block title %}Modifier Client{% endblock %}
{% block body %} {% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Modifier Client</h1> <h1>Modifier Client</h1>
{{ include('clients/_form.html.twig', {'button_label': 'Mettre à jour'}) }} {{ include('clients/_form.html.twig', {'button_label': 'Mettre à jour'}) }}
@ -10,4 +28,5 @@
<a href="{{ path('app_clients_index') }}">Retour à la liste</a> <a href="{{ path('app_clients_index') }}">Retour à la liste</a>
{{ include('clients/_delete_form.html.twig') }} {{ include('clients/_delete_form.html.twig') }}
</div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,24 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Clients index{% endblock %} {% block title %}Client index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Clients index</h1> <h1>Clients index</h1>
<table class="table"> <table class="table">
@ -44,4 +57,5 @@
</table> </table>
<a href="{{ path('app_clients_new') }}">Créer un nouveau client</a> <a href="{{ path('app_clients_new') }}">Créer un nouveau client</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,14 +1,29 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Nouveau client{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Créer un client</h1> <h1>Créer un client</h1>
{{ include('clients/_form.html.twig') }} {{ include('clients/_form.html.twig') }}
<a href="{{ path('app_clients_index') }}">Retour à la liste</a> <a href="{{ path('app_clients_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,15 +1,32 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Modifier Commande{% endblock %} {% block title %}Tables index{% endblock %}
{% block body %} {% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Modifier Commande</h1> <h1>Modifier Commande</h1>
{{ include('commandes/_form.html.twig', {'button_label': 'Mettre à jour'}) }} {{ include('commandes/_form.html.twig', {'button_label': 'Mettre à jour'}) }}
<a href="{{ path('app_commandes_index') }}">Retour à la liste</a> <a href="{{ path('app_commandes_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}
{% block javascripts %} {% block javascripts %}
<script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script> <script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script>

View File

@ -1,11 +1,24 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Commandes index{% endblock %} {% block title %}Commandes index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Commandes index</h1> <h1>Commandes index</h1>
<table class="table"> <table class="table">
@ -31,7 +44,7 @@
{{ include('commandes/_delete_form.html.twig') }} {{ include('commandes/_delete_form.html.twig') }}
</form> </form>
<button onclick="updateCommandes(this)" data-id="{{ commande.id }}" href="{{ path('app_commandes_edit', {'id': commande.id}) }}">Modifier</button> <a href="{{ path('app_commandes_edit', {'id': commande.id}) }}">Modifier</a>
</td> </td>
</tr> </tr>
{% else %} {% else %}
@ -41,5 +54,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<button onclick="addCommandes(this)" href="{{ path('app_commandes_new') }}">Créer une réduction</button>
<a href="{{ path('app_commandes_new') }}">Créer une nouvelle commande</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,15 +1,29 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Nouvelle commande{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Créer une commande</h1> <h1>Créer une commande</h1>
{{ include('commandes/_form.html.twig') }} {{ include('commandes/_form.html.twig') }}
<a href="{{ path('app_commandes_index') }}">Retour à la liste</a> <a href="{{ path('app_commandes_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}

View File

@ -10,130 +10,11 @@
{% endblock %} {% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
<style>
</style>
<!-- Top Bar -->
<div class="top-bar">
<div>
Bonjour, {{ app.user.prenom }}
</div>
</div>
<!-- Left Menu -->
<div class="left-background">
<img class="LogoHegre" src="{{ asset('asset/image/LogoHegre.png') }}">
{% if is_granted('ROLE_ADMIN') %}
<div class="nav-bar">
<ul>
<li>
<div class="btn-custom btn-gestion-utilisateurs icon-container" >
<i class="icon-medium"> {{ ux_icon('grommet-icons:group') }}</i>
<span>Gérer Utilisateur</span>
</div>
</li>
<li>
<div class="btn-custom btn-gestion-table icon-container">
<i class="icon-medium"> {{ ux_icon('ic:outline-table-bar') }}</i>
<span>Gérer Table</span>
</div>
</li>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('bx:food-menu') }}</i>
<span>Gestion Menu</span>
</div>
</li>
<li>
<div class="btn-custom btn-gestion-promotion icon-container">
<i class="icon-medium"> {{ ux_icon('lsicon:badge-promotion-outline') }}</i>
<span>Gestion Promotion</span>
</div>
</li>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('fluent-emoji-high-contrast:ten-oclock') }}</i>
<span>Voir tendances</span>
</div>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_CUISINIER') %}
<div class="nav-bar">
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:view-list') }}</i>
<span>Liste des commandes</span>
</div>
</li>
</ul>
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('grommet-icons:group') }}</i>
<span>Je sais pas encore</span>
</div>
</li>
</ul>
</div>
{% elseif is_granted('ROLE_SERVEUR') %}
<div class="nav-bar">
<ul>
<li>
<div class="btn-custom icon-container">
<i class="icon-medium"> {{ ux_icon('fluent-mdl2:reservation-orders') }}</i>
<span>Réservation</span>
</div>
</li>
</ul>
<ul>
<li>
<div class="btn-custom btn-gestion-commandes icon-container">
<i class="icon-medium"> {{ ux_icon('icon-park-outline:view-list') }}</i>
<span>Commande</span>
</div>
</li>
</ul>
</div>
{% endif %}
<div class="Information-perso">
<div class="btn-info-compte icon-container">
<i class="icon-medium"> {{ ux_icon('ph:user-circle-fill') }}</i>
<span>Compte</span>
</div>
<div class="btn-info-exit icon-container">
<a href="{{ path('app_logout') }}" class="icon-medium">
{{ ux_icon('iconamoon:exit-bold') }}
</a>
</div>
</div>
</div>
<div id="container_modal">
<!-- Contenu par défaut, ou vous p ouvez laisser vide -->
</div>
<script>
</script>
<!-- Include modals -->
{% endblock %}
{% block javascripts %}
<script src="{{ asset('js/Compte/CompteModal.js') }}" defer></script>
<script src="{{ asset('js/GestionCommande/GestionCommande.js') }}" defer></script>
<script src="{{ asset('js/GestionUtilisateurs/GestionUtilisateurs.js') }}" defer></script>
<script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script>
<script src="{{ asset('js/GestionTables/GestionTables.js') }}" defer></script>
{% endblock %}

View File

@ -1,12 +1,26 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Modifier Plat{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %} {% block head %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="page-container"> <div class="page-container">
<h1 class="page-title">Modifier Plat</h1> <h1 class="page-title">Modifier Plat</h1>
@ -18,4 +32,10 @@
{{ include('plats/_delete_form.html.twig') }} {{ include('plats/_delete_form.html.twig') }}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,26 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Plats index{% endblock %} {% block title %}Tables index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Plats index</h1> <h1>Plats index</h1>
<table class="table"> <table class="table">
@ -47,5 +62,10 @@
</tbody> </tbody>
</table> </table>
<a href="{{ path('app_plats_new') }}">Créer un nouveau plat</a> <a href="{{ path('app_plats_new') }}">Créer un menu</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,14 +1,34 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}New Plats{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Créer un nouveau plat</h1> <h1>Créer un nouveau plat</h1>
{{ include('plats/_form.html.twig') }} {{ include('plats/_form.html.twig') }}
<a href="{{ path('app_plats_index') }}">Retour à la liste</a> <a href="{{ path('app_plats_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,12 +1,26 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Modifier Réductions{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %} {% block head %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="page-container"> <div class="page-container">
<h1 class="page-title">Modifier une réduction</h1> <h1 class="page-title">Modifier une réduction</h1>
@ -18,4 +32,10 @@
{{ include('reductions/_delete_form.html.twig') }} {{ include('reductions/_delete_form.html.twig') }}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,26 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Reductions index{% endblock %} {% block title %}Tables index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Reductions index</h1> <h1>Reductions index</h1>
<table class="table"> <table class="table">
@ -36,7 +51,7 @@
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ reduction.id) }}"> <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ reduction.id) }}">
{{ include('reductions/_delete_form.html.twig') }} {{ include('reductions/_delete_form.html.twig') }}
</form> </form>
<button onclick="updatePromotion(this)" data-id="{{ reduction.id }}" href="{{ path('app_reductions_edit', {'id': reduction.id}) }}">Modifier</button> <a href="{{ path('app_reductions_edit', {'id': reduction.id}) }}">Modifier</a>
</td> </td>
</tr> </tr>
{% else %} {% else %}
@ -47,9 +62,10 @@
</tbody> </tbody>
</table> </table>
<button onclick="addPromotion(this)" href="{{ path('app_reductions_new') }}">Créer une réduction</button> <a href="{{ path('app_reductions_new') }}">Créer une réduction</a>
</div>
{% endblock %} {% endblock %}
{% block javascripts %}
<script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script>
{% endblock %}

View File

@ -1,14 +1,35 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Nouvelle reduction{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Créer une Reduction</h1> <h1>Créer une Reduction</h1>
{{ include('reductions/_form.html.twig') }} {{ include('reductions/_form.html.twig') }}
<a href="{{ path('app_reductions_index') }}">Retour à la liste</a> <a href="{{ path('app_reductions_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,12 +1,25 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Modifier Réservation{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %} {% block head %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="page-container"> <div class="page-container">
<h1 class="page-title">Modifier Réservation</h1> <h1 class="page-title">Modifier Réservation</h1>
@ -18,4 +31,5 @@
{{ include('reservations/_delete_form.html.twig') }} {{ include('reservations/_delete_form.html.twig') }}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,24 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Reservations index{% endblock %} {% block title %}Reservations index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Reservations index</h1> <h1>Reservations index</h1>
<table class="table"> <table class="table">
@ -40,4 +53,5 @@
</table> </table>
<a href="{{ path('app_reservations_new') }}">Créer une réservation</a> <a href="{{ path('app_reservations_new') }}">Créer une réservation</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,14 +1,29 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}New Reservations{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS -->
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Créer une reservation</h1> <h1>Créer une reservation</h1>
{{ include('reservations/_form.html.twig') }} {{ include('reservations/_form.html.twig') }}
<a href="{{ path('app_reservations_index') }}">Retour à la liste</a> <a href="{{ path('app_reservations_index') }}">Retour à la liste</a>
</div>
{% endblock %} {% endblock %}

View File

@ -1,12 +1,25 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Edit Tables{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %} {% block head %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="page-container"> <div class="page-container">
<h1 class="page-title">Modifier Tables</h1> <h1 class="page-title">Modifier Tables</h1>
@ -18,4 +31,8 @@
{{ include('tables/_delete_form.html.twig') }} {{ include('tables/_delete_form.html.twig') }}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,11 +1,25 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Tables index{% endblock %} {% block title %}Tables index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS --> <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block body %}
{% block container_modal %}
<div id="container_modal">
<h1>Tables index</h1> <h1>Tables index</h1>
<table class="table"> <table class="table">
@ -35,9 +49,9 @@
</tbody> </tbody>
</table> </table>
<button onclick="addTable(this)" href="{{ path('app_reductions_new') }}">Créer une tables</button> <a onclick="addTable(this)" href="{{ path('app_tables_new')}}">Créer une tables</a>
</div>
{% endblock %} {% endblock %}
{% block javascripts %}
<script src="{{ asset('js/GestionPromotion/GestionPromotion.js') }}" defer></script>
{% endblock %}

View File

@ -1,13 +1,25 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Create New Table{% endblock %} {% block title %}Tables index{% endblock %}
{% block stylesheets %} {% block head %}
<link rel="stylesheet" href="{{ asset('css/list.css') }}"> <!-- Ajout du fichier CSS --> <head>
<link rel="stylesheet" href="{{ asset('css/ControllerVues/new.css') }}"> <!-- Ajout du fichier CSS --> <meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %} {% endblock %}
{% block body %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="container"> <div class="container">
<h1 class="page-title">Créer une nouvelle Table</h1> <h1 class="page-title">Créer une nouvelle Table</h1>
@ -19,4 +31,7 @@
<a href="{{ path('app_tables_index') }}" class="btn btn-secondary">Retour à la liste</a> <a href="{{ path('app_tables_index') }}" class="btn btn-secondary">Retour à la liste</a>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,5 +1,47 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Tables index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<div class="form-container">
<h1>Nouvelle Utilisateur ! ✅</h1>
{{ form_start(registrationForm) }}
{{ form_errors(registrationForm) }}
<div class="form-group">
{{ form_row(registrationForm.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }}
</div>
<div class="btn-container">
{{ form_row(registrationForm.Enregistrer, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }}
</div>
{{ form_end(registrationForm) }}
</div>
</div>
{% block stylesheets %} {% block stylesheets %}
<style> <style>
.form-container { .form-container {
@ -66,36 +108,16 @@
} }
</style> </style>
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block title %}Nouvelle Utilisateur{% endblock %}
{% block body %}
<div class="form-container">
<h1>Nouvelle Utilisateur ! ✅</h1>
{{ form_start(registrationForm) }}
{{ form_errors(registrationForm) }}
<div class="form-group">
{{ form_row(registrationForm.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }}
</div>
<div class="form-group">
{{ form_row(registrationForm.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }}
</div>
<div class="btn-container">
{{ form_row(registrationForm.Enregistrer, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }}
</div>
{{ form_end(registrationForm) }}
</div>
{% endblock %} {% endblock %}

View File

@ -1,53 +1,25 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Liste Utilisateur{% endblock %} {% block title %}Tables index{% endblock %}
{% block body %} {% block head %}
<style> <head>
.user-table { <meta charset="UTF-8">
width: 100%; <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
border-collapse: collapse; <link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
font-family: sans-serif; </head>
} {% endblock %}
.user-table th, {% block stylesheets %}
.user-table td { <link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
border: 1px solid #ddd; <link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
padding: 8px; <link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
text-align: left; <link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
} {% endblock %}
.user-table th { {% block container_modal %}
background-color: #f2f2f2;
font-weight: bold;
}
.user-table tr:nth-child(even) {
background-color: #f9f9f9;
}
.user-table tr:hover {
background-color: #f1f1f1;
}
.btn-container {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.btn {
padding: 5px 10px;
text-decoration: none;
color: white;
background-color: #007bff;
border-radius: 5px;
font-weight: bold;
margin-top: 25px;
}
</style>
<div id="container_modal">
<div class="example-wrapper"> <div class="example-wrapper">
<h1>Liste des Utilisateurs ! ✅</h1> <h1>Liste des Utilisateurs ! ✅</h1>
@ -78,11 +50,13 @@
</tbody> </tbody>
</table> </table>
<div class="btn-container"> <div class="btn-container">
<button onclick="addUser(this)" id="btn-add-user" class="btn btn-add-user btn-primary">Ajouter un Utilisateur</button> <a href="/user/add" id="btn-add-user" class="btn btn-add-user btn-primary" >Ajouter un Utilisateur</a>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}
{% block javascripts %}
<script src="{{ asset('js/GestionUtilisateurs/GestionUtilisateurs.js') }}" defer></script>
{% endblock %}

View File

@ -1,5 +1,49 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Tables index{% endblock %}
{% block head %}
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
</head>
{% endblock %}
{% block container_modal %}
<div id="container_modal">
<h1>Modifier Utilisateurs ! ✅</h1>
{{ form_start(form) }}
{{ form_errors(form) }}
<div class="form-group">
{{ form_row(form.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }}
</div>
<div class="form-group">
{{ form_row(form.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }}
</div>
<div class="form-group">
{{ form_row(form.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }}
</div>
<div class="form-group">
{{ form_row(form.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }}
</div>
<div class="form-group">
{{ form_row(form.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }}
</div>
<div class="btn-container">
{{ form_row(form.Modifier, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }}
</div>
{{ form_end(form) }}
<div class="btn-container">
<a href="{{ path('app_index') }}" class="btn-list btn-primary">Annuler</a>
</div>
</div>
{% block stylesheets %} {% block stylesheets %}
<style> <style>
.form-container { .form-container {
@ -66,40 +110,14 @@
} }
</style> </style>
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
{% endblock %} {% endblock %}
{% block title %}Nouvelle Utilisateur{% endblock %}
{% block body %}
<div class="form-container">
<h1>Modifier Utilisateurs ! ✅</h1>
{{ form_start(form) }}
{{ form_errors(form) }}
<div class="form-group">
{{ form_row(form.Nom, {'attr': {'class': 'form-input'}, 'label': 'Nom'}) }}
</div>
<div class="form-group">
{{ form_row(form.Prenom, {'attr': {'class': 'form-input'}, 'label': 'Prénom'}) }}
</div>
<div class="form-group">
{{ form_row(form.UserIdentifier, {'attr': {'class': 'form-input'}, 'label': 'Email'}) }}
</div>
<div class="form-group">
{{ form_row(form.Password, {'attr': {'class': 'form-input'}, 'label': 'Password'}) }}
</div>
<div class="form-group">
{{ form_row(form.Roles, {'attr': {'class': 'form-input'}, 'label': 'Roles'}) }}
</div>
<div class="btn-container">
{{ form_row(form.Modifier, {'attr': {'class': 'btn-save'}, 'label': 'Enregistrer'}) }}
</div>
{{ form_end(form) }}
<div class="btn-container">
<a href="{{ path('app_index') }}" class="btn-list btn-primary">Annuler</a>
</div>
</div>
{% endblock %} {% endblock %}