Added a configuration to define the redirection after archiving an entry

Fix #496
This commit is contained in:
Nicolas Lœuillet
2016-11-06 12:02:39 +01:00
committed by Jeremy Benoist
parent e042a5d78f
commit a42f38d9fb
26 changed files with 184 additions and 3 deletions

View File

@ -48,6 +48,13 @@ class ConfigType extends AbstractType
'config.form_settings.reading_speed.400_word' => '2',
],
])
->add('action_mark_as_read', ChoiceType::class, [
'label' => 'config.form_settings.action_mark_as_read.label',
'choices' => [
'config.form_settings.action_mark_as_read.redirect_homepage' => '0',
'config.form_settings.action_mark_as_read.redirect_current_page' => '1',
],
])
->add('language', ChoiceType::class, [
'choices' => array_flip($this->languages),
'label' => 'config.form_settings.language_label',