From: Raphaƫl Gertz Date: Mon, 16 Aug 2021 23:03:11 +0000 (+0200) Subject: Add hat snippet field X-Git-Tag: 0.2.0~80 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/361215f4c3800be010a0b86a96934ca3c0202fc9?ds=inline;hp=361cd87861355561d4d5d4005753b48f1fc5f526 Add hat snippet field --- diff --git a/Form/SnippetType.php b/Form/SnippetType.php index 0d6fd3b..efdbc2f 100644 --- a/Form/SnippetType.php +++ b/Form/SnippetType.php @@ -3,6 +3,7 @@ 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; @@ -33,6 +34,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])