mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-28 10:30:28 +00:00
Merge pull request #1343 from wallabag/v2-filter-date
[WIP] filter by creation date
This commit is contained in:
commit
3162601c59
1 changed files with 15 additions and 1 deletions
|
@ -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 a new issue