diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-09-13 21:07:27 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-09-13 21:07:27 +0200 |
commit | b004a236ba0cc96bf530801a55cdddf9ec809d13 (patch) | |
tree | 9cd57b48d5a4c5ec7952ba02736c8209f1c95c69 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config | |
parent | 4d5fd9be812825c480589cdcfcec281ffb5aa66a (diff) | |
parent | 1a5f7e2d88284419654057fda71e2b0be9b5439a (diff) | |
download | wallabag-b004a236ba0cc96bf530801a55cdddf9ec809d13.tar.gz wallabag-b004a236ba0cc96bf530801a55cdddf9ec809d13.tar.zst wallabag-b004a236ba0cc96bf530801a55cdddf9ec809d13.zip |
Merge pull request #1401 from wallabag/v2-baggy-themes
Cleanup baggy
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | 169 |
1 files changed, 169 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig new file mode 100644 index 00000000..c90bb2e3 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -0,0 +1,169 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}Config{% endtrans %}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | <h2>{% trans %}Wallabag configuration{% endtrans %}</h2> | ||
7 | |||
8 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.config) }}> | ||
9 | {{ form_errors(form.config) }} | ||
10 | |||
11 | <fieldset class="w500p inline"> | ||
12 | <div class="row"> | ||
13 | {{ form_label(form.config.theme) }} | ||
14 | {{ form_errors(form.config.theme) }} | ||
15 | {{ form_widget(form.config.theme) }} | ||
16 | </div> | ||
17 | </fieldset> | ||
18 | |||
19 | <fieldset class="w500p inline"> | ||
20 | <div class="row"> | ||
21 | {{ form_label(form.config.items_per_page) }} | ||
22 | {{ form_errors(form.config.items_per_page) }} | ||
23 | {{ form_widget(form.config.items_per_page) }} | ||
24 | </div> | ||
25 | </fieldset> | ||
26 | |||
27 | <fieldset class="w500p inline"> | ||
28 | <div class="row"> | ||
29 | {{ form_label(form.config.language) }} | ||
30 | {{ form_errors(form.config.language) }} | ||
31 | {{ form_widget(form.config.language) }} | ||
32 | </div> | ||
33 | </fieldset> | ||
34 | |||
35 | {{ form_rest(form.config) }} | ||
36 | </form> | ||
37 | |||
38 | <h2>{% trans %}RSS configuration{% endtrans %}</h2> | ||
39 | |||
40 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.rss) }}> | ||
41 | {{ form_errors(form.rss) }} | ||
42 | |||
43 | <fieldset class="w500p inline"> | ||
44 | <div class="row"> | ||
45 | <label>Rss token</label> | ||
46 | {% if rss.token %} | ||
47 | {{ rss.token }} | ||
48 | {% else %} | ||
49 | <em>No token</em> | ||
50 | {% endif %} | ||
51 | – | ||
52 | <a href="{{ path('generate_token') }}">Regenerate ?</a> | ||
53 | </div> | ||
54 | </fieldset> | ||
55 | |||
56 | <fieldset class="w500p inline"> | ||
57 | <div class="row"> | ||
58 | <label>Rss links:</label> | ||
59 | {% if rss.token %} | ||
60 | <ul> | ||
61 | <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">unread</a></li> | ||
62 | <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">fav</a></li> | ||
63 | <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">archives</a></li> | ||
64 | </ul> | ||
65 | {% else %} | ||
66 | <strong>You need to generate a token first.</strong> | ||
67 | {% endif %} | ||
68 | </div> | ||
69 | </fieldset> | ||
70 | |||
71 | <fieldset class="w500p inline"> | ||
72 | <div class="row"> | ||
73 | {{ form_label(form.rss.rss_limit) }} | ||
74 | {{ form_errors(form.rss.rss_limit) }} | ||
75 | {{ form_widget(form.rss.rss_limit) }} | ||
76 | </div> | ||
77 | </fieldset> | ||
78 | |||
79 | {{ form_rest(form.rss) }} | ||
80 | </form> | ||
81 | |||
82 | <h2>{% trans %}User information{% endtrans %}</h2> | ||
83 | |||
84 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.user) }}> | ||
85 | {{ form_errors(form.user) }} | ||
86 | |||
87 | <fieldset class="w500p inline"> | ||
88 | <div class="row"> | ||
89 | {{ form_label(form.user.name) }} | ||
90 | {{ form_errors(form.user.name) }} | ||
91 | {{ form_widget(form.user.name) }} | ||
92 | </div> | ||
93 | </fieldset> | ||
94 | |||
95 | <fieldset class="w500p inline"> | ||
96 | <div class="row"> | ||
97 | {{ form_label(form.user.email) }} | ||
98 | {{ form_errors(form.user.email) }} | ||
99 | {{ form_widget(form.user.email) }} | ||
100 | </div> | ||
101 | </fieldset> | ||
102 | |||
103 | {{ form_rest(form.user) }} | ||
104 | </form> | ||
105 | |||
106 | <h2>{% trans %}Change your password{% endtrans %}</h2> | ||
107 | |||
108 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.pwd) }}> | ||
109 | {{ form_errors(form.pwd) }} | ||
110 | |||
111 | <fieldset class="w500p inline"> | ||
112 | <div class="row"> | ||
113 | {{ form_label(form.pwd.old_password) }} | ||
114 | {{ form_errors(form.pwd.old_password) }} | ||
115 | {{ form_widget(form.pwd.old_password) }} | ||
116 | </div> | ||
117 | </fieldset> | ||
118 | |||
119 | <fieldset class="w500p inline"> | ||
120 | <div class="row"> | ||
121 | {{ form_label(form.pwd.new_password.first) }} | ||
122 | {{ form_errors(form.pwd.new_password.first) }} | ||
123 | {{ form_widget(form.pwd.new_password.first) }} | ||
124 | </div> | ||
125 | </fieldset> | ||
126 | |||
127 | <fieldset class="w500p inline"> | ||
128 | <div class="row"> | ||
129 | {{ form_label(form.pwd.new_password.second) }} | ||
130 | {{ form_errors(form.pwd.new_password.second) }} | ||
131 | {{ form_widget(form.pwd.new_password.second) }} | ||
132 | </div> | ||
133 | </fieldset> | ||
134 | |||
135 | {{ form_rest(form.pwd) }} | ||
136 | </form> | ||
137 | |||
138 | <h2>{% trans %}Add a user{% endtrans %}</h2> | ||
139 | |||
140 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.new_user) }}> | ||
141 | {{ form_errors(form.new_user) }} | ||
142 | |||
143 | <fieldset class="w500p inline"> | ||
144 | <div class="row"> | ||
145 | {{ form_label(form.new_user.username) }} | ||
146 | {{ form_errors(form.new_user.username) }} | ||
147 | {{ form_widget(form.new_user.username) }} | ||
148 | </div> | ||
149 | </fieldset> | ||
150 | |||
151 | <fieldset class="w500p inline"> | ||
152 | <div class="row"> | ||
153 | {{ form_label(form.new_user.password) }} | ||
154 | {{ form_errors(form.new_user.password) }} | ||
155 | {{ form_widget(form.new_user.password) }} | ||
156 | </div> | ||
157 | </fieldset> | ||
158 | |||
159 | <fieldset class="w500p inline"> | ||
160 | <div class="row"> | ||
161 | {{ form_label(form.new_user.email) }} | ||
162 | {{ form_errors(form.new_user.email) }} | ||
163 | {{ form_widget(form.new_user.email) }} | ||
164 | </div> | ||
165 | </fieldset> | ||
166 | |||
167 | {{ form_rest(form.new_user) }} | ||
168 | </form> | ||
169 | {% endblock %} | ||