<?php

namespace AppBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;


class AnswerType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('status', HiddenType::class);
        $builder
            ->add('comment', TextareaType::class, array(
                'label' => 'Commentaire lié à votre réponse vidéo',
                'required' => false,
                'attr' => array(
                    'class' => 'materialize-textarea'
                )
            ));
    }
}