Added setting to have a personal reading time

This commit is contained in:
Nicolas Lœuillet
2016-03-08 16:44:25 +01:00
parent 17b3d026fd
commit bca5485946
9 changed files with 56 additions and 2 deletions

View File

@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\RangeType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@ -35,6 +36,13 @@ class ConfigType extends AbstractType
'choices_as_values' => true,
))
->add('items_per_page')
->add('reading_speed', RangeType::class, array(
'attr' => array(
'min' => 0.5,
'max' => 2,
'step' => 0.5,
),
))
->add('language', ChoiceType::class, array(
'choices' => array_flip($this->languages),
'choices_as_values' => true,