<?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 PrestaShopBundle\Form\Admin\Type\SwitchType;

class SliderGroupType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('isVisible',SwitchType::class, [
                'required' => false,
                'label' => 'Activer la visibilité',
            ])
            ->add('title', TextType::class, [
                'label' => 'Titre du bloc',
            ])

            ->add('autoPlay',SwitchType::class, [
            'label' => 'Activer le mode autoplay sur le slider',
            'required' => false,
            ])

            ->add('background',SwitchType::class, [
                'label' => 'le slider integre le menu',
                'required' => false,
            ])

            ->add('width',SwitchType::class, [
                'label' => 'le slider s\'étend sur toute la largeur du site',
                'required' => false,
            ])

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