mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
Merge pull request #1343 from wallabag/v2-filter-date
[WIP] filter by creation date
This commit is contained in:
commit
3162601c59
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user