aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig
blob: f44db420fbed5ed3e01b41806e4ffd6037bd181b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "WallabagCoreBundle::layout.html.twig" %}

{% block title %}{% trans %}internal settings{% endtrans %}{% endblock %}

{% block content %}
    <div class="row">
        <div class="col s12">
            <div class="card-panel settings">
                {{ form_start(form, {'attr': {'class': 'craue_config_settings_modify'}}) }}
                    {{ form_errors(form) }}

                    <div class="row">
                        <div class="div_tabs col s12">
                            <ul class="tabs">
                                {% for section in sections | craue_sortSections %}
                                    <li class="tab col s3"><a href="#set-{{ section }}">{{ section | trans({}, 'CraueConfigBundle') }}</a></li>
                                {% endfor %}
                            </ul>
                        </div>

                        {% for section in sections | craue_sortSections %}
                            <div id="set-{{ section }}" class="col s12">
                                {% for setting in form.settings if setting.section.vars.value == section %}
                                        {{ form_row(setting.name) }}
                                        {{ form_row(setting.section) }}
                                        {{ form_row(setting.value, {
                                            'label': setting.name.vars.value | trans({}, 'CraueConfigBundle'),
                                        }) }}
                                {% endfor %}
                            </div>
                        {% endfor %}
                </div>

                <button class="btn waves-effect waves-light" type="submit" name="action">
                    {{ 'modify_settings' | trans({}, 'CraueConfigBundle') }}
                </button>

                {{ form_rest(form) }}
                {{ form_end(form) }}
            </div>
        </div>
    </div>
{% endblock %}