Commit 4d4abca6 by Damien Moulard

presta products families : products fields turned into textarea and remove labels

parent 5f3b56a7
......@@ -7,7 +7,7 @@ use App\Entity\ProductFamily;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
......@@ -19,15 +19,18 @@ class PrestataireProductFamilyFormType extends AbstractType
->add('productFamily', EntityType::class, array(
'class' => ProductFamily::class,
'choice_label' => 'name',
'label' => 'Famille de produits ',
'label' => false,
'required' => true,
'placeholder' => 'Choisissez une famille',
'placeholder' => 'Choisissez une famille de produits',
'attr' => ['class' => 'prestataire-product-families-select']
))
->add('products', TextType::class, [
'label' => 'Produits ',
->add('products', TextareaType::class, [
'label' => false,
'required' => true,
'attr' => ['class' => 'prestataire-product-families-products']
'attr' => [
'class' => 'prestataire-product-families-products',
'placeholder' => 'Renseignez des produits correspondant à cette famille'
],
])
;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment