From c3ff97cd6ddc9a44620545fb0b37d03469e6448c Mon Sep 17 00:00:00 2001 From: leroyv Date: Thu, 21 Nov 2024 16:31:51 +0100 Subject: [PATCH] Fix clients --- src/Form/ClientsType.php | 4 ++-- templates/clients/new.html.twig | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Form/ClientsType.php b/src/Form/ClientsType.php index bdcd973..cd01f5a 100644 --- a/src/Form/ClientsType.php +++ b/src/Form/ClientsType.php @@ -19,12 +19,12 @@ class ClientsType extends AbstractType ->add('Nom') ->add('Email') ->add('Telephone') - ->add('table', EntityType::class, [ + ->add('Tables', EntityType::class, [ 'class' => Tables::class, 'choice_label' => 'id', 'multiple' => true, ]) - ->add('commandes', EntityType::class, [ + ->add('Commandes', EntityType::class, [ 'class' => Commandes::class, 'choice_label' => 'id', 'multiple' => true, diff --git a/templates/clients/new.html.twig b/templates/clients/new.html.twig index 598c5dd..528365d 100644 --- a/templates/clients/new.html.twig +++ b/templates/clients/new.html.twig @@ -1,8 +1,10 @@ {% extends 'base.html.twig' %} {% block title %}New Clients{% endblock %} +{% block stylesheets %} + - +{% endblock %} {% block body %}

Create new Clients