Fix default value and add baggy implementation

This commit is contained in:
Nicolas Lœuillet 2016-03-10 13:02:36 +01:00
parent 889c1cf328
commit db1d4b1e19
2 changed files with 10 additions and 1 deletions

View file

@ -30,7 +30,7 @@ class Configuration implements ConfigurationInterface
->defaultValue(50) ->defaultValue(50)
->end() ->end()
->integerNode('reading_speed') ->integerNode('reading_speed')
->defaultValue(200) ->defaultValue(1)
->end() ->end()
->scalarNode('version') ->scalarNode('version')
->end() ->end()

View file

@ -24,6 +24,15 @@
</div> </div>
</fieldset> </fieldset>
<fieldset class="w500p inline">
<div class="row">
{{ form_label(form.config.reading_speed) }}
{{ form_errors(form.config.reading_speed) }}
{{ form_widget(form.config.reading_speed) }}
</div>
</fieldset>
<fieldset class="w500p inline"> <fieldset class="w500p inline">
<div class="row"> <div class="row">
{{ form_label(form.config.language) }} {{ form_label(form.config.language) }}