<?php
namespace App\MDS\GreenPatioBundle\Form;
use App\MDS\GreenPatioBundle\Entity\ReservationInvoice;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
class ReservationInvoiceType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
// ->add('number')
// ->add('prefix')
// ->add('dateAt')
// ->add('type')
// ->add('reservationId')
// ->add('totalnet')
// ->add('vat')
// ->add('total')
->add('proPrt', SubmitType::class, ['label' => 'Print Proforma'])
->add('proPdf', SubmitType::class, ['label' => 'Pdf Proforma'])
->add('invPrt', SubmitType::class, ['label' => 'Print Invoice'])
->add('invPdf', SubmitType::class, ['label' => 'Pdf Invoice'])
;
}
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => ReservationInvoice::class
));
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'mds_greenpatiobundle_reservationinvoice';
}
}