src/MDS/GreenPatioBundle/Form/ReservationInvoiceType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\MDS\GreenPatioBundle\Form;
  3. use App\MDS\GreenPatioBundle\Entity\ReservationInvoice;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\FormBuilderInterface;
  6. use Symfony\Component\OptionsResolver\OptionsResolver;
  7. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  8. class ReservationInvoiceType extends AbstractType
  9. {
  10.     /**
  11.      * {@inheritdoc}
  12.      */
  13.     public function buildForm(FormBuilderInterface $builder, array $options)
  14.     {
  15.         $builder
  16. //            ->add('number')
  17. //            ->add('prefix')
  18. //            ->add('dateAt')
  19. //            ->add('type')
  20. //            ->add('reservationId')
  21. //            ->add('totalnet')
  22. //            ->add('vat')
  23. //            ->add('total')
  24.             ->add('proPrt'SubmitType::class, ['label' => 'Print Proforma'])
  25.             ->add('proPdf'SubmitType::class, ['label' => 'Pdf Proforma'])
  26.             ->add('invPrt'SubmitType::class, ['label' => 'Print Invoice'])
  27.             ->add('invPdf'SubmitType::class, ['label' => 'Pdf Invoice'])
  28.         ;
  29.     }
  30.     
  31.     /**
  32.      * {@inheritdoc}
  33.      */
  34.     public function configureOptions(OptionsResolver $resolver)
  35.     {
  36.         $resolver->setDefaults(array(
  37.             'data_class' => ReservationInvoice::class
  38.         ));
  39.     }
  40.     /**
  41.      * {@inheritdoc}
  42.      */
  43.     public function getBlockPrefix()
  44.     {
  45.         return 'mds_greenpatiobundle_reservationinvoice';
  46.     }
  47. }