diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-16 21:28:49 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-16 21:31:58 +0100 |
commit | 4d85d7e9ba676bd5ac3428976ce9227f460eb542 (patch) | |
tree | acf77c5baced69e689fcfc2d9463a9b75b9b3657 /src/Wallabag/CoreBundle/Resources | |
parent | 7a577c519ffc254b6ddecd75c9ee84f656d759e1 (diff) | |
download | wallabag-4d85d7e9ba676bd5ac3428976ce9227f460eb542.tar.gz wallabag-4d85d7e9ba676bd5ac3428976ce9227f460eb542.tar.zst wallabag-4d85d7e9ba676bd5ac3428976ce9227f460eb542.zip |
Implement simple config
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/config/routing.yml | 6 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig | 41 |
2 files changed, 46 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/routing.yml b/src/Wallabag/CoreBundle/Resources/config/routing.yml index ec1d23cc..f3502e15 100644 --- a/src/Wallabag/CoreBundle/Resources/config/routing.yml +++ b/src/Wallabag/CoreBundle/Resources/config/routing.yml | |||
@@ -1,3 +1,7 @@ | |||
1 | _wllbg: | 1 | entry: |
2 | resource: "@WallabagCoreBundle/Controller/EntryController.php" | 2 | resource: "@WallabagCoreBundle/Controller/EntryController.php" |
3 | type: annotation | 3 | type: annotation |
4 | |||
5 | config: | ||
6 | resource: "@WallabagCoreBundle/Controller/ConfigController.php" | ||
7 | type: annotation | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig new file mode 100644 index 00000000..9c04ff20 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig | |||
@@ -0,0 +1,41 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}Config{% endtrans %}{% endblock %} | ||
4 | |||
5 | {% block menu %} | ||
6 | {% include "WallabagCoreBundle::_menu.html.twig" %} | ||
7 | {% endblock %} | ||
8 | |||
9 | {% block content %} | ||
10 | <h2>Basic config</h2> | ||
11 | |||
12 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form) }}> | ||
13 | {{ form_errors(form) }} | ||
14 | |||
15 | <fieldset class="w500p inline"> | ||
16 | <div class="row"> | ||
17 | {{ form_label(form.theme) }} | ||
18 | {{ form_errors(form.theme) }} | ||
19 | {{ form_widget(form.theme) }} | ||
20 | </div> | ||
21 | </fieldset> | ||
22 | |||
23 | <fieldset class="w500p inline"> | ||
24 | <div class="row"> | ||
25 | {{ form_label(form.items_per_page) }} | ||
26 | {{ form_errors(form.items_per_page) }} | ||
27 | {{ form_widget(form.items_per_page) }} | ||
28 | </div> | ||
29 | </fieldset> | ||
30 | |||
31 | <fieldset class="w500p inline"> | ||
32 | <div class="row"> | ||
33 | {{ form_label(form.language) }} | ||
34 | {{ form_errors(form.language) }} | ||
35 | {{ form_widget(form.language) }} | ||
36 | </div> | ||
37 | </fieldset> | ||
38 | |||
39 | {{ form_rest(form) }} | ||
40 | </form> | ||
41 | {% endblock %} | ||