From 1ef2bbbbb8ba9750c7619e1dcfa8ce1fabfab6eb Mon Sep 17 00:00:00 2001 From: Mat Date: Sat, 19 May 2018 18:36:03 +0200 Subject: [PATCH] un oubli, ajoute une classe sur les forms (pas en api) --- src/TechnoBundle/Form/Image/ImageType.php | 1 + src/TechnoBundle/Form/Owner/OwnerType.php | 1 + .../Resources/views/Ajax/Image/mainDisplay.html.twig | 0 3 files changed, 2 insertions(+) mode change 100644 => 100755 src/TechnoBundle/Resources/views/Ajax/Image/mainDisplay.html.twig diff --git a/src/TechnoBundle/Form/Image/ImageType.php b/src/TechnoBundle/Form/Image/ImageType.php index d0a0214..a2c6f95 100755 --- a/src/TechnoBundle/Form/Image/ImageType.php +++ b/src/TechnoBundle/Form/Image/ImageType.php @@ -59,6 +59,7 @@ class ImageType extends AbstractType $resolver->setDefault('data_class', Image::class); // Image::class => \TechnoBundle\Entity\Image (2 écritures équivalentes) + $resolver->setDefault('attr', array('class' => 'image_type')); } /** diff --git a/src/TechnoBundle/Form/Owner/OwnerType.php b/src/TechnoBundle/Form/Owner/OwnerType.php index 888a763..00fb1c4 100755 --- a/src/TechnoBundle/Form/Owner/OwnerType.php +++ b/src/TechnoBundle/Form/Owner/OwnerType.php @@ -47,6 +47,7 @@ class OwnerType extends AbstractType parent::configureOptions($resolver); $resolver->setDefault('data_class', Owner::class); + $resolver->setDefault('attr', array('class' => 'owner_type')); } /** diff --git a/src/TechnoBundle/Resources/views/Ajax/Image/mainDisplay.html.twig b/src/TechnoBundle/Resources/views/Ajax/Image/mainDisplay.html.twig old mode 100644 new mode 100755 -- GitLab