<?php

namespace PrestaShop\Module\LCVPrestaTheme\Forms;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use PrestaShopBundle\Form\Admin\Type\SwitchType;

class ReassuranceGroupType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('isVisible',SwitchType::class, [
                'required' => false,
                'label' => 'Activer la visibilité',
            ])
            ->add('hook', choiceType::class, [
                'choices' => [
                    'Home' => 'home',
                    'FooterBefore' => 'footerbefore',
                ],
                'label' => 'positioner sur le hook de votre choix ',
            ])
            ->add('title', TextType::class, [
                'label' => 'Titre du bloc',
            ])

            ->add('save', SubmitType::class , [
                'label' => 'Enregistrer',
                'attr' => [
                    'class' => 'btn btn-primary',
                ],
            ]);
    }
}