<commit_before><commit_msg>Add consultation step1 form type<commit_after><?php

namespace Listabierta\Bundle\MunicipalesBundle\Form\Type\Consultation;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Listabierta\Bundle\MunicipalesBundle\Validator\Constraints\DNI;

class ConsultationStep1Type extends AbstractType
{
	private $translations = array();
	
	public function __construct($translations = array())
	{
		$this->translations = $translations;
	}
	
	public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('first_question', 'choice', array(
				        'choices' => array(
				        		'a' => $this->translations['consultation.step1.first_question_option_A'], 
				        		'b' => $this->translations['consultation.step1.first_question_option_B']
				        ),
        				'preferred_choices' => array('a'),
        				'data' => 'no',
				        'multiple' => false,
				        'expanded' => true,
				        'required' => true,
				    ))
				 ->add('second_question', 'choice', array(
				    		'choices' => array(
				    				'a' => $this->translations['consultation.step1.second_question_option_A'],
				    				'b' => $this->translations['consultation.step1.second_question_option_B']
				    		),
				    		'preferred_choices' => array('a'),
				    		'data' => 'no',
				    		'multiple' => false,
				    		'expanded' => true,
				    		'required' => true,
				    ))
        		->add('continue', 'submit', array('attr' => array('class' => 'submit','style' => 'margin-left:0px')));
    }
	
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
    }

    public function getName()
    {
        return 'consultation_step1';
    }
}
{'fraction_non_alphanumeric': 0.14058355437665782, 'fraction_numerical': 0.004244031830238726, 'mean_word_length': 3.021321961620469, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '22036', 'n_tokens_mistral': 660, 'n_tokens_neox': 568, 'n_words': 91}