]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
Fix form_enctype deprecation
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Config / index.html.twig
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}{% trans %}config{% endtrans %}{% endblock %}
4
5 {% block content %}
6
7 <div class="row">
8 <div class="col s12">
9 <div class="card-panel settings">
10
11 <div class="row">
12 <div class="div_tabs col s12">
13 <ul class="tabs">
14 <li class="tab col s3"><a class="active" href="#set1">{% trans %}Settings{% endtrans %}</a></li>
15 <li class="tab col s3"><a href="#set2">{% trans %}RSS{% endtrans %}</a></li>
16 <li class="tab col s3"><a href="#set3">{% trans %}User information{% endtrans %}</a></li>
17 <li class="tab col s3"><a href="#set4">{% trans %}Password{% endtrans %}</a></li>
18 {% if is_granted('ROLE_SUPER_ADMIN') %}
19 <li class="tab col s3"><a href="#set5">{% trans %}Add a user{% endtrans %}</a></li>
20 {% endif %}
21 </ul>
22 </div>
23
24 <div id="set1" class="col s12">
25 {{ form_start(form.config) }}
26 {{ form_errors(form.config) }}
27
28 <div class="row">
29 <div class="input-field col s12">
30 {{ form_errors(form.config.theme) }}
31 {{ form_widget(form.config.theme) }}
32 <label class="required">{% trans %}Theme{% endtrans %}</label>
33 </div>
34 </div>
35
36 <div class="row">
37 <div class="input-field col s12">
38 {{ form_label(form.config.items_per_page) }}
39 {{ form_errors(form.config.items_per_page) }}
40 {{ form_widget(form.config.items_per_page) }}
41 </div>
42 </div>
43
44 <div class="row">
45 <div class="input-field col s12">
46 {{ form_label(form.config.language) }}
47 {{ form_errors(form.config.language) }}
48 {{ form_widget(form.config.language) }}
49 </div>
50 </div>
51
52 <div class="hidden">{{ form_rest(form.config) }}</div>
53 <button class="btn waves-effect waves-light" type="submit" name="action">
54 {% trans %}Save{% endtrans %}
55 </button>
56 </form>
57 </div>
58
59 <div id="set2" class="col s12">
60 {{ form_start(form.rss) }}
61 {{ form_errors(form.rss) }}
62
63 <div class="row">
64 <div class="input-field col s12">
65 {% trans %}RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader. You need to generate a token first.{% endtrans %}
66 </div>
67 </div>
68
69 <div class="row">
70 <div class="input-field col s12">
71 <label>{% trans %}RSS token{% endtrans %}</label>
72 <div>
73 {% if rss.token %}
74 {{ rss.token }}
75 {% else %}
76 <em>{% trans %}No token{% endtrans %}</em>
77 {% endif %}
78 – <a href="{{ path('generate_token') }}">{% if rss.token %}{% trans %}Reset your token{% endtrans %}{% else %}{% trans %}Create your token{% endtrans %}{% endif %}</a>
79 </div>
80 </div>
81 </div>
82 {% if rss.token %}
83 <div class="row">
84 <div class="input-field col s12">
85 <label>{% trans %}RSS links{% endtrans %}</label>
86 <ul>
87 <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">{% trans %}unread{% endtrans %}</a></li>
88 <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">{% trans %}starred{% endtrans %}</a></li>
89 <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">{% trans %}archive{% endtrans %}</a></li>
90 </ul>
91
92 </div>
93 </div>
94 {% endif %}
95
96 <div class="row">
97 <div class="input-field col s12">
98 {{ form_label(form.rss.rss_limit) }}
99 {{ form_errors(form.rss.rss_limit) }}
100 {{ form_widget(form.rss.rss_limit) }}
101 </div>
102 </div>
103
104 <div class="hidden">{{ form_rest(form.rss) }}</div>
105 <button class="btn waves-effect waves-light" type="submit" name="action">
106 {% trans %}Save{% endtrans %}
107 </button>
108
109 </form>
110 </div>
111
112 <div id="set3" class="col s12">
113 {{ form_start(form.user) }}
114 {{ form_errors(form.user) }}
115
116 <div class="row">
117 <div class="input-field col s12">
118 {{ form_label(form.user.name) }}
119 {{ form_errors(form.user.name) }}
120 {{ form_widget(form.user.name) }}
121 </div>
122 </div>
123
124 <div class="row">
125 <div class="input-field col s12">
126 {{ form_label(form.user.email) }}
127 {{ form_errors(form.user.email) }}
128 {{ form_widget(form.user.email) }}
129 </div>
130 </div>
131
132 {% if twofactor_auth %}
133 <div class="row">
134 <div class="input-field col s12">
135 {{ form_widget(form.user.twoFactorAuthentication) }}
136 {{ form_label(form.user.twoFactorAuthentication) }}
137 {{ form_errors(form.user.twoFactorAuthentication) }}
138 </div>
139 </div>
140 {% endif %}
141
142 <div class="hidden">{{ form_rest(form.user) }}</div>
143 <button class="btn waves-effect waves-light" type="submit" name="action">
144 {% trans %}Save{% endtrans %}
145 </button>
146
147 </form>
148 </div>
149
150 <div id="set4" class="col s12">
151 {{ form_start(form.pwd) }}
152 {{ form_errors(form.pwd) }}
153
154 <div class="row">
155 <div class="input-field col s12">
156 {{ form_label(form.pwd.old_password) }}
157 {{ form_errors(form.pwd.old_password) }}
158 {{ form_widget(form.pwd.old_password) }}
159 </div>
160 </div>
161
162 <div class="row">
163 <div class="input-field col s12">
164 {{ form_label(form.pwd.new_password.first) }}
165 {{ form_errors(form.pwd.new_password.first) }}
166 {{ form_widget(form.pwd.new_password.first) }}
167 </div>
168 </div>
169
170 <div class="row">
171 <div class="input-field col s12">
172 {{ form_label(form.pwd.new_password.second) }}
173 {{ form_errors(form.pwd.new_password.second) }}
174 {{ form_widget(form.pwd.new_password.second) }}
175 </div>
176 </div>
177
178 <div class="hidden">{{ form_rest(form.pwd) }}</div>
179 <button class="btn waves-effect waves-light" type="submit" name="action">
180 {% trans %}Save{% endtrans %}
181 </button>
182
183 </form>
184 </div>
185
186 {% if is_granted('ROLE_SUPER_ADMIN') %}
187 <div id="set5" class="col s12">
188 {{ form_start(form.new_user) }}
189 {{ form_errors(form.new_user) }}
190
191 <div class="row">
192 <div class="input-field col s12">
193 {{ form_label(form.new_user.username) }}
194 {{ form_errors(form.new_user.username) }}
195 {{ form_widget(form.new_user.username) }}
196 </div>
197 </div>
198
199 <div class="row">
200 <div class="input-field col s12">
201 {{ form_label(form.new_user.plainPassword.first) }}
202 {{ form_errors(form.new_user.plainPassword.first) }}
203 {{ form_widget(form.new_user.plainPassword.first) }}
204 </div>
205 </div>
206
207 <div class="row">
208 <div class="input-field col s12">
209 {{ form_label(form.new_user.plainPassword.second) }}
210 {{ form_errors(form.new_user.plainPassword.second) }}
211 {{ form_widget(form.new_user.plainPassword.second) }}
212 </div>
213 </div>
214
215 <div class="row">
216 <div class="input-field col s12">
217 {{ form_label(form.new_user.email) }}
218 {{ form_errors(form.new_user.email) }}
219 {{ form_widget(form.new_user.email) }}
220 </div>
221 </div>
222
223 <div class="hidden">{{ form_rest(form.new_user) }}</div>
224 <button class="btn waves-effect waves-light" type="submit" name="action">
225 {% trans %}Add a user{% endtrans %}
226 </button>
227
228 </form>
229 </div>
230 {% endif %}
231 </div>
232
233 </div>
234 </div>
235 </div>
236 {% endblock %}