{
public function buildForm(FormBuilderInterface $builder, array $options)
{
- $builder->add('readingTime', 'filter_number_range');
+ $builder
+ ->add('readingTime', 'filter_number_range')
+ ->add('createdAt', 'filter_date_range', array(
+ 'left_date_options' => array(
+ 'attr' => array(
+ 'placeholder' => 'dd/mm/yyyy'),
+ 'format' => 'dd/MM/yyyy',
+ 'widget' => 'single_text'
+ ),
+ 'right_date_options' => array(
+ 'attr' => array(
+ 'placeholder' => 'dd/mm/yyyy'),
+ 'format' => 'dd/MM/yyyy',
+ 'widget' => 'single_text'
+ )));
}
public function getName()