]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Form/SnippetType.php
Add support for bundle named entity
[airbundle] / Form / SnippetType.php
index 0d6fd3b355bbd71b5b955239b1566f692637aeeb..05f581833d77d07c7d127fd9ab285e2c326c8a80 100644 (file)
@@ -3,12 +3,12 @@
 namespace Rapsys\AirBundle\Form;
 
 use Symfony\Component\Form\AbstractType;
+use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
 use Symfony\Component\Form\Extension\Core\Type\FileType;
 use Symfony\Component\Form\Extension\Core\Type\HiddenType;
 use Symfony\Component\Form\Extension\Core\Type\NumberType;
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
 use Symfony\Component\Form\Extension\Core\Type\TextareaType;
-use Symfony\Component\Form\Extension\Core\Type\TextType;
 use Symfony\Component\Form\Extension\Core\Type\UrlType;
 use Symfony\Component\Form\FormBuilderInterface;
 use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -33,6 +33,7 @@ class SnippetType extends AbstractType {
                        ->add('class', TextareaType::class, ['attr' => ['placeholder' => 'Your class', 'cols' => 50, 'rows' => 10], 'required' => false])
                        ->add('short', TextareaType::class, ['attr' => ['placeholder' => 'Your short', 'cols' => 50, 'rows' => 10], 'required' => false])
                        ->add('rate', NumberType::class, ['attr' => ['placeholder' => 'Your rate'], 'required' => false])
+                       ->add('hat', CheckboxType::class, ['attr' => ['placeholder' => 'Your hat'], 'required' => false])
                        ->add('contact', UrlType::class, ['attr' => ['placeholder' => 'Your contact'], 'required' => false])
                        ->add('donate', UrlType::class, ['attr' => ['placeholder' => 'Your donate'], 'required' => false])
                        ->add('link', UrlType::class, ['attr' => ['placeholder' => 'Your link'], 'required' => false])