<?php

namespace HVCSiteBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class LignefraisforfaitType extends AbstractType
{
    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('quantiterepasmidi','integer', array(
                'label'=>'Repas midi',
                'attr'=>array(
                    'placeholder'=>'Saisir le nombre',
                    'class'=>'forminput'
                    )
            ))


            ->add('quantiterelaisetape','integer', array(
                'label'=>'Relais étapes',
                'attr'=>array(
                    'placeholder'=>'Saisir le nombre',
                    'class'=>'forminput'
                )
            ))

            ->add('quantitenuitee','integer', array(
                'label'=>'Repas nuitée',
                'attr'=>array(
                    'placeholder'=>'Saisir le nombre',
                    'class'=>'forminput'
                )
            ))

            ->add('distance','integer', array(
                'label'=>'Distance',
                'attr'=>array(
                    'placeholder'=>'Km',
                    'class'=>'forminput'
                )
            ))
        ;
    }


    /**
     * @param OptionsResolverInterface $resolver
     */
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'HVCSiteBundle\Entity\Lignefraisforfait'

        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'hvcsitebundle_lignefraisforfait';
    }
}
