]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/CraueConfigBundle/views/Settings/modify.html.twig
Merge pull request #3213 from wallabag/fix-internal-settings-form
[github/wallabag/wallabag.git] / app / Resources / CraueConfigBundle / views / Settings / modify.html.twig
CommitLineData
63e40f2d
JB
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
5e469b91 3{% block title %}{{ 'menu.left.internal_settings'|trans }}{% endblock %}
63e40f2d
JB
4
5{% block content %}
6 <div class="row">
7 <div class="col s12">
8 <div class="card-panel settings">
9 {{ form_start(form, {'attr': {'class': 'craue_config_settings_modify'}}) }}
10 {{ form_errors(form) }}
11
12 <div class="row">
13 <div class="div_tabs col s12">
14 <ul class="tabs">
15 {% for section in sections | craue_sortSections %}
d9a30ef3 16 <li class="tab col s12 m6 l3"><a href="#set-{{ section }}">{{ section | trans({}, 'CraueConfigBundle') }}</a></li>
63e40f2d
JB
17 {% endfor %}
18 </ul>
19 </div>
20
21 {% for section in sections | craue_sortSections %}
22 <div id="set-{{ section }}" class="col s12">
3b792787
NL
23 {% for setting in form.settings if setting.vars.value.section == section %}
24 {{ form_row(setting.value, {
25 'label': setting.vars.value.name | trans({}, 'CraueConfigBundle'),
26 }) }}
63e40f2d
JB
27 {% endfor %}
28 </div>
29 {% endfor %}
30 </div>
31
32 <button class="btn waves-effect waves-light" type="submit" name="action">
33 {{ 'modify_settings' | trans({}, 'CraueConfigBundle') }}
34 </button>
35
b662c65e 36 {{ form_widget(form._token) }}
63e40f2d
JB
37 </div>
38 </div>
39 </div>
40{% endblock %}