aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-14 22:57:16 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-17 15:54:49 +0200
commit3c5b025ac369c99df9ed0c83fefaac436e13b33c (patch)
tree1e12fef24500cba3ba70559e5e68debba0e9fbb2
parent925d8ab316127be8dc0cea2515cfc1d419b1d5e8 (diff)
downloadwallabag-3c5b025ac369c99df9ed0c83fefaac436e13b33c.tar.gz
wallabag-3c5b025ac369c99df9ed0c83fefaac436e13b33c.tar.zst
wallabag-3c5b025ac369c99df9ed0c83fefaac436e13b33c.zip
filter by creation date
-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()