diff options
Diffstat (limited to 'app/Resources/CraueConfigBundle/views')
-rw-r--r-- | app/Resources/CraueConfigBundle/views/Settings/modify.html.twig | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig b/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig index c4e735ee..db153270 100644 --- a/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig +++ b/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig | |||
@@ -20,12 +20,10 @@ | |||
20 | 20 | ||
21 | {% for section in sections | craue_sortSections %} | 21 | {% for section in sections | craue_sortSections %} |
22 | <div id="set-{{ section }}" class="col s12"> | 22 | <div id="set-{{ section }}" class="col s12"> |
23 | {% for setting in form.settings if setting.section.vars.value == section %} | 23 | {% for setting in form.settings if setting.vars.value.section == section %} |
24 | {{ form_row(setting.name) }} | 24 | {{ form_row(setting.value, { |
25 | {{ form_row(setting.section) }} | 25 | 'label': setting.vars.value.name | trans({}, 'CraueConfigBundle'), |
26 | {{ form_row(setting.value, { | 26 | }) }} |
27 | 'label': setting.name.vars.value | trans({}, 'CraueConfigBundle'), | ||
28 | }) }} | ||
29 | {% endfor %} | 27 | {% endfor %} |
30 | </div> | 28 | </div> |
31 | {% endfor %} | 29 | {% endfor %} |
@@ -35,8 +33,7 @@ | |||
35 | {{ 'modify_settings' | trans({}, 'CraueConfigBundle') }} | 33 | {{ 'modify_settings' | trans({}, 'CraueConfigBundle') }} |
36 | </button> | 34 | </button> |
37 | 35 | ||
38 | {{ form_rest(form) }} | 36 | {{ form_widget(form._token) }} |
39 | {{ form_end(form) }} | ||
40 | </div> | 37 | </div> |
41 | </div> | 38 | </div> |
42 | </div> | 39 | </div> |