aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-18 14:28:43 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-18 14:28:43 +0200
commit3162601c59cb07615afeebc007e157ca64c658c7 (patch)
tree1b710b30073782d91505aa343b28aacf8deab9a5 /src
parent68196041857bd0cd45e4f5d5d282e405e5d78ea9 (diff)
parent3c5b025ac369c99df9ed0c83fefaac436e13b33c (diff)
downloadwallabag-3162601c59cb07615afeebc007e157ca64c658c7.tar.gz
wallabag-3162601c59cb07615afeebc007e157ca64c658c7.tar.zst
wallabag-3162601c59cb07615afeebc007e157ca64c658c7.zip
Merge pull request #1343 from wallabag/v2-filter-date
[WIP] filter by creation date
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Filter/EntryFilterType.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
index 636ba324..2fa2f8a0 100644
--- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
+++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php
@@ -10,7 +10,21 @@ class EntryFilterType extends AbstractType
10{ 10{
11 public function buildForm(FormBuilderInterface $builder, array $options) 11 public function buildForm(FormBuilderInterface $builder, array $options)
12 { 12 {
13 $builder->add('readingTime', 'filter_number_range'); 13 $builder
14 ->add('readingTime', 'filter_number_range')
15 ->add('createdAt', 'filter_date_range', array(
16 'left_date_options' => array(
17 'attr' => array(
18 'placeholder' => 'dd/mm/yyyy'),
19 'format' => 'dd/MM/yyyy',
20 'widget' => 'single_text'
21 ),
22 'right_date_options' => array(
23 'attr' => array(
24 'placeholder' => 'dd/mm/yyyy'),
25 'format' => 'dd/MM/yyyy',
26 'widget' => 'single_text'
27 )));
14 } 28 }
15 29
16 public function getName() 30 public function getName()