Merge pull request #1343 from wallabag/v2-filter-date

[WIP] filter by creation date
This commit is contained in:
Jeremy Benoist 2015-08-18 14:28:43 +02:00
commit 3162601c59

View file

@ -10,7 +10,21 @@ class EntryFilterType extends AbstractType
{
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()