-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d05072b
commit d525af6
Showing
13 changed files
with
283 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
namespace CRMBundle\Form\Filter; | ||
|
||
use Symfony\Component\Form\AbstractType; | ||
use Symfony\Component\Form\FormBuilderInterface; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use VehiculosBundle\Form\EventListener\AddAnioCodigoVersionFieldSubscriber; | ||
|
||
class CRMReporteFilterType extends AbstractType { | ||
|
||
private $em; | ||
|
||
public function __construct( $em = null ) { | ||
$this->em = $em; | ||
} | ||
|
||
/** | ||
* @param FormBuilderInterface $builder | ||
* @param array $options | ||
*/ | ||
public function buildForm( FormBuilderInterface $builder, array $options ) { | ||
|
||
$builder | ||
->add( 'vendedor', | ||
'jqueryautocomplete', | ||
array( | ||
'label' => 'Vendedor (Por Apellido)', | ||
'class' => 'PersonasBundle:Empleado', | ||
'search_method' => 'getEmpleadoByApellido', | ||
'required' => false, | ||
'route_name' => 'get_empleado_by_apellido' | ||
) ) | ||
->add( 'rango', | ||
'text', | ||
array( | ||
'required' => false, | ||
'attr' => array( 'class' => 'daterange' ) | ||
) ); | ||
} | ||
|
||
/** | ||
* @param OptionsResolver $resolver | ||
*/ | ||
public function configureOptions( OptionsResolver $resolver ) { | ||
$resolver->setDefaults( array( | ||
'csrf_protection' => false | ||
) ); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() { | ||
return 'crmbundle_reporte_filter'; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.