diff --git a/public/css/new.css b/public/css/new.css new file mode 100644 index 0000000..07c98d1 --- /dev/null +++ b/public/css/new.css @@ -0,0 +1,125 @@ +/* Global styles */ +body { + font-family: 'Arial', sans-serif; + background-color: #fff5f5; + color: #333; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + align-items: center; + min-height: 100vh; +} + +/* Page container */ +.page-container { + width: 100%; + max-width: 600px; + margin: 20px auto; + padding: 20px; + background-color: #fff; + border-radius: 10px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border: 2px solid #ff4d4d; +} + +/* Title */ +.page-title { + text-align: center; + font-size: 28px; + color: #ff4d4d; + margin-bottom: 20px; + font-weight: bold; + text-transform: uppercase; + letter-spacing: 1px; +} + +/* Form styles */ +form { + display: flex; + flex-direction: column; + gap: 15px; +} + +.form-group { + display: flex; + flex-direction: column; +} + +label { + font-weight: bold; + color: #ff4d4d; + margin-bottom: 5px; +} + +input[type="text"], +input[type="email"], +input[type="number"], +textarea, +select { + padding: 10px; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 14px; + color: #333; + transition: border-color 0.3s ease-in-out; +} + +input[type="text"]:focus, +input[type="email"]:focus, +input[type="number"]:focus, +textarea:focus, +select:focus { + border-color: #ff4d4d; + outline: none; +} + +/* Submit button */ +button { + background-color: #ff4d4d; + color: white; + font-weight: bold; + padding: 12px 20px; + border: none; + border-radius: 5px; + font-size: 16px; + cursor: pointer; + text-transform: uppercase; + transition: background-color 0.3s ease-in-out; +} + +button:hover { + background-color: #e60000; +} + +/* Links */ +.actions { + text-align: center; + margin-top: 15px; +} + +.actions a { + text-decoration: none; + color: #ff4d4d; + font-weight: bold; + transition: color 0.3s ease-in-out; +} + +.actions a:hover { + color: #e60000; +} + +/* Error messages */ +.error-message { + color: #d9534f; + font-size: 14px; + margin-top: 5px; + font-style: italic; +} + +/* Empty space below */ +body::after { + content: ''; + height: 20px; + display: block; +} diff --git a/public/css/show.css b/public/css/show.css new file mode 100644 index 0000000..e69de29 diff --git a/src/Entity/Clients.php b/src/Entity/Clients.php index fcc28fd..7367507 100644 --- a/src/Entity/Clients.php +++ b/src/Entity/Clients.php @@ -32,7 +32,7 @@ class Clients * @var Collection */ #[ORM\ManyToMany(targetEntity: Tables::class, mappedBy: 'Clients')] - private Collection $tables; + public Collection $tables; /** * @var Collection diff --git a/src/Form/PlatsType.php b/src/Form/PlatsType.php index 5946a7d..068fa54 100644 --- a/src/Form/PlatsType.php +++ b/src/Form/PlatsType.php @@ -25,10 +25,11 @@ class PlatsType extends AbstractType 'class' => Commandes::class, 'choice_label' => 'id', 'multiple' => true, + 'expanded' => true, ]) ->add('Reduction', EntityType::class, [ 'class' => Reductions::class, - 'choice_label' => 'id', + 'choice_label' => 'description', ]) ; } diff --git a/templates/clients/new.html.twig b/templates/clients/new.html.twig index 616aca7..598c5dd 100644 --- a/templates/clients/new.html.twig +++ b/templates/clients/new.html.twig @@ -2,6 +2,7 @@ {% block title %}New Clients{% endblock %} + {% block body %}

Create new Clients

diff --git a/templates/commandes/new.html.twig b/templates/commandes/new.html.twig index af63760..85f9551 100644 --- a/templates/commandes/new.html.twig +++ b/templates/commandes/new.html.twig @@ -1,6 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New Commandes{% endblock %} +{% block stylesheets %} + + +{% endblock %} {% block body %}

Create new Commandes

diff --git a/templates/details_commande/new.html.twig b/templates/details_commande/new.html.twig index c3cae39..ad45911 100644 --- a/templates/details_commande/new.html.twig +++ b/templates/details_commande/new.html.twig @@ -1,8 +1,12 @@ {% extends 'base.html.twig' %} {% block title %}New DetailsCommande{% endblock %} - +{% block stylesheets %} + + +{% endblock %} {% block body %} +

Create new DetailsCommande

{{ include('details_commande/_form.html.twig') }} diff --git a/templates/plats/new.html.twig b/templates/plats/new.html.twig index a59e66b..460014a 100644 --- a/templates/plats/new.html.twig +++ b/templates/plats/new.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New Plats{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Create new Plats

diff --git a/templates/reductions/new.html.twig b/templates/reductions/new.html.twig index 3b23736..fd042d1 100644 --- a/templates/reductions/new.html.twig +++ b/templates/reductions/new.html.twig @@ -1,11 +1,14 @@ {% extends 'base.html.twig' %} {% block title %}New Reductions{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %} -

Create new Reductions

+

Créer une Reductions

{{ include('reductions/_form.html.twig') }} - back to list + revenir a la liste {% endblock %} diff --git a/templates/reservations/new.html.twig b/templates/reservations/new.html.twig index c7c1981..cd5fe18 100644 --- a/templates/reservations/new.html.twig +++ b/templates/reservations/new.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New Reservations{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Create new Reservations

diff --git a/templates/statut_commandes/index.html.twig b/templates/statut_commandes/index.html.twig index 31d2a17..e5d445e 100644 --- a/templates/statut_commandes/index.html.twig +++ b/templates/statut_commandes/index.html.twig @@ -2,6 +2,10 @@ {% block title %}StatutCommandes index{% endblock %} +{% block stylesheets %} + + +{% endblock %} {% block body %}

StatutCommandes index

diff --git a/templates/statut_commandes/new.html.twig b/templates/statut_commandes/new.html.twig index ff46e9a..11b3a2c 100644 --- a/templates/statut_commandes/new.html.twig +++ b/templates/statut_commandes/new.html.twig @@ -1,7 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New StatutCommandes{% endblock %} +{% block stylesheets %} + +{% endblock %} {% block body %}

Create new StatutCommandes

diff --git a/templates/tables/new.html.twig b/templates/tables/new.html.twig index f25965a..7978437 100644 --- a/templates/tables/new.html.twig +++ b/templates/tables/new.html.twig @@ -1,6 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New Tables{% endblock %} +{% block stylesheets %} + + +{% endblock %} {% block body %}

Create new Tables