diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-04 15:59:57 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-04 15:59:57 +0100 |
commit | e008c037f53324b931f027483f9f1053171109c5 (patch) | |
tree | 441c54eb946ffb53a161cad8f686ce7aff875abd /app/Resources/CraueConfigBundle/views/Settings | |
parent | 74f39b0952440fa0c55e5e8a2e1a8d2bbd3acfd7 (diff) | |
parent | 79b9e49d9464e9a67f6ee66fbf6f6c541b1a29f4 (diff) | |
download | wallabag-e008c037f53324b931f027483f9f1053171109c5.tar.gz wallabag-e008c037f53324b931f027483f9f1053171109c5.tar.zst wallabag-e008c037f53324b931f027483f9f1053171109c5.zip |
Merge pull request #1612 from wallabag/v2-settings-page
Settings page
Diffstat (limited to 'app/Resources/CraueConfigBundle/views/Settings')
-rw-r--r-- | app/Resources/CraueConfigBundle/views/Settings/modify.html.twig | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig b/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig new file mode 100644 index 00000000..f44db420 --- /dev/null +++ b/app/Resources/CraueConfigBundle/views/Settings/modify.html.twig | |||
@@ -0,0 +1,43 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}internal settings{% endtrans %}{% endblock %} | ||
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 %} | ||
16 | <li class="tab col s3"><a href="#set-{{ section }}">{{ section | trans({}, 'CraueConfigBundle') }}</a></li> | ||
17 | {% endfor %} | ||
18 | </ul> | ||
19 | </div> | ||
20 | |||
21 | {% for section in sections | craue_sortSections %} | ||
22 | <div id="set-{{ section }}" class="col s12"> | ||
23 | {% for setting in form.settings if setting.section.vars.value == section %} | ||
24 | {{ form_row(setting.name) }} | ||
25 | {{ form_row(setting.section) }} | ||
26 | {{ form_row(setting.value, { | ||
27 | 'label': setting.name.vars.value | trans({}, 'CraueConfigBundle'), | ||
28 | }) }} | ||
29 | {% endfor %} | ||
30 | </div> | ||
31 | {% endfor %} | ||
32 | </div> | ||
33 | |||
34 | <button class="btn waves-effect waves-light" type="submit" name="action"> | ||
35 | {{ 'modify_settings' | trans({}, 'CraueConfigBundle') }} | ||
36 | </button> | ||
37 | |||
38 | {{ form_rest(form) }} | ||
39 | {{ form_end(form) }} | ||
40 | </div> | ||
41 | </div> | ||
42 | </div> | ||
43 | {% endblock %} | ||