]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig
Remove fr part
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Config / index.html.twig
CommitLineData
53e12188
AD
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
0d42217e 3{% block title %}{{ 'config.page_title'|trans }}{% endblock %}
53e12188
AD
4
5{% block content %}
6
7 <div class="row">
8 <div class="col s12">
9948d899 9 <div class="card-panel settings">
53e12188
AD
10
11 <div class="row">
9948d899 12 <div class="div_tabs col s12">
53e12188 13 <ul class="tabs">
0d42217e
JB
14 <li class="tab col s3"><a class="active" href="#set1">{{ 'config.tab_menu.settings'|trans }}</a></li>
15 <li class="tab col s3"><a href="#set2">{{ 'config.tab_menu.rss'|trans }}</a></li>
16 <li class="tab col s3"><a href="#set3">{{ 'config.tab_menu.user_info'|trans }}</a></li>
17 <li class="tab col s3"><a href="#set4">{{ 'config.tab_menu.password'|trans }}</a></li>
18 <li class="tab col s3"><a href="#set5">{{ 'config.tab_menu.rules'|trans }}</a></li>
26975877 19 {% if is_granted('ROLE_SUPER_ADMIN') %}
0d42217e 20 <li class="tab col s3"><a href="#set6">{{ 'config.tab_menu.new_user'|trans }}</a></li>
26975877 21 {% endif %}
53e12188
AD
22 </ul>
23 </div>
24
53e12188 25 <div id="set1" class="col s12">
33fe61f9 26 {{ form_start(form.config) }}
53e12188
AD
27 {{ form_errors(form.config) }}
28
29 <div class="row">
30 <div class="input-field col s12">
0d42217e 31 {{ form_label(form.config.theme) }}
53e12188
AD
32 {{ form_errors(form.config.theme) }}
33 {{ form_widget(form.config.theme) }}
53e12188
AD
34 </div>
35 </div>
36
37 <div class="row">
38 <div class="input-field col s12">
39 {{ form_label(form.config.items_per_page) }}
40 {{ form_errors(form.config.items_per_page) }}
41 {{ form_widget(form.config.items_per_page) }}
42 </div>
43 </div>
44
bca54859
NL
45 <div class="row">
46 <div class="input-field col s12">
47 {{ form_label(form.config.reading_speed) }}
48 {{ form_errors(form.config.reading_speed) }}
49 {{ form_widget(form.config.reading_speed) }}
f3e49264
JB
50 <p>
51 {{ 'config.form_settings.reading_speed.help_message'|trans }}
52 <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
53 </p>
bca54859
NL
54 </div>
55 </div>
56
53e12188
AD
57 <div class="row">
58 <div class="input-field col s12">
59 {{ form_label(form.config.language) }}
60 {{ form_errors(form.config.language) }}
61 {{ form_widget(form.config.language) }}
62 </div>
63 </div>
64
0d42217e
JB
65 {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
66 {{ form_rest(form.config) }}
53e12188
AD
67 </form>
68 </div>
69
53e12188 70 <div id="set2" class="col s12">
33fe61f9 71 {{ form_start(form.rss) }}
53e12188
AD
72 {{ form_errors(form.rss) }}
73
74 <div class="row">
75 <div class="input-field col s12">
0d42217e 76 {{ 'config.form_rss.description'|trans }}
4f0dfac6
NL
77 </div>
78 </div>
79
80 <div class="row">
81 <div class="input-field col s12">
0d42217e 82 <label>{{ 'config.form_rss.token_label'|trans }}</label>
83aaf841
JB
83 <div>
84 {% if rss.token %}
85 {{ rss.token }}
86 {% else %}
0d42217e 87 <em>{{ 'config.form_rss.no_token'|trans }}</em>
83aaf841 88 {% endif %}
0d42217e
JB
89 – <a href="{{ path('generate_token') }}">
90 {% if rss.token %}
91 {{ 'config.form_rss.token_reset'|trans }}
92 {% else %}
93 {{ 'config.form_rss.token_create'|trans }}
94 {% endif %}</a>
83aaf841 95 </div>
53e12188
AD
96 </div>
97 </div>
4f0dfac6 98 {% if rss.token %}
53e12188
AD
99 <div class="row">
100 <div class="input-field col s12">
0d42217e
JB
101 <label>{{ 'config.form_rss.rss_links'|trans }}</label>
102 <ul>
103 <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.unread'|trans }}</a></li>
104 <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.starred'|trans }}</a></li>
105 <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.archive'|trans }}</a></li>
106 </ul>
53e12188
AD
107 </div>
108 </div>
4f0dfac6 109 {% endif %}
53e12188
AD
110
111 <div class="row">
112 <div class="input-field col s12">
113 {{ form_label(form.rss.rss_limit) }}
114 {{ form_errors(form.rss.rss_limit) }}
115 {{ form_widget(form.rss.rss_limit) }}
116 </div>
117 </div>
118
0d42217e
JB
119 {{ form_widget(form.rss.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
120 {{ form_rest(form.rss) }}
53e12188
AD
121 </form>
122 </div>
123
53e12188 124 <div id="set3" class="col s12">
33fe61f9 125 {{ form_start(form.user) }}
53e12188
AD
126 {{ form_errors(form.user) }}
127
128 <div class="row">
129 <div class="input-field col s12">
130 {{ form_label(form.user.name) }}
131 {{ form_errors(form.user.name) }}
132 {{ form_widget(form.user.name) }}
133 </div>
134 </div>
135
136 <div class="row">
137 <div class="input-field col s12">
138 {{ form_label(form.user.email) }}
139 {{ form_errors(form.user.email) }}
140 {{ form_widget(form.user.email) }}
141 </div>
142 </div>
143
18cf594f 144 {% if twofactor_auth %}
23ff8d36
JB
145 <div class="row">
146 <div class="input-field col s12">
0d42217e 147 {{ 'config.form_user.two_factor_description'|trans }}
23ff8d36
JB
148 </div>
149 </div>
150
2db616b5
NL
151 <div class="row">
152 <div class="input-field col s12">
153 {{ form_widget(form.user.twoFactorAuthentication) }}
154 {{ form_label(form.user.twoFactorAuthentication) }}
155 {{ form_errors(form.user.twoFactorAuthentication) }}
156 </div>
157 </div>
18cf594f 158 {% endif %}
2db616b5 159
0d42217e
JB
160 {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
161 {{ form_rest(form.user) }}
53e12188
AD
162 </form>
163 </div>
164
53e12188 165 <div id="set4" class="col s12">
33fe61f9 166 {{ form_start(form.pwd) }}
53e12188
AD
167 {{ form_errors(form.pwd) }}
168
169 <div class="row">
170 <div class="input-field col s12">
171 {{ form_label(form.pwd.old_password) }}
172 {{ form_errors(form.pwd.old_password) }}
173 {{ form_widget(form.pwd.old_password) }}
174 </div>
175 </div>
176
177 <div class="row">
178 <div class="input-field col s12">
179 {{ form_label(form.pwd.new_password.first) }}
180 {{ form_errors(form.pwd.new_password.first) }}
181 {{ form_widget(form.pwd.new_password.first) }}
182 </div>
183 </div>
184
185 <div class="row">
186 <div class="input-field col s12">
187 {{ form_label(form.pwd.new_password.second) }}
188 {{ form_errors(form.pwd.new_password.second) }}
189 {{ form_widget(form.pwd.new_password.second) }}
190 </div>
191 </div>
192
0d42217e
JB
193 {{ form_widget(form.pwd.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
194 {{ form_rest(form.pwd) }}
53e12188
AD
195 </form>
196 </div>
197
f19f9f62 198 <div id="set5" class="col s12">
981cacf7
KG
199 <div class="row">
200 <div class="input-field col s12">
201 <ul>
202 {% for tagging_rule in app.user.config.taggingRules %}
203 <li>
0d42217e
JB
204 {{ 'config.form_rules.if_label'|trans }}
205 « {{ tagging_rule.rule }} »
206 {{ 'config.form_rules.then_tag_as_label'|trans }}
207 « {{ tagging_rule.tags|join(', ') }} »
208 <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.delete_rule_label'|trans }}">
52e423f3
KG
209 <i class="tool grey-text delete mdi-action-delete"></i>
210 </a>
981cacf7
KG
211 </li>
212 {% endfor %}
213 </ul>
214 </div>
215 </div>
216
c13eda46 217 {{ form_start(form.new_tagging_rule) }}
9b88658c 218 {{ form_errors(form.new_tagging_rule) }}
f19f9f62
KG
219
220 <div class="row">
221 <div class="input-field col s12">
222 {{ form_label(form.new_tagging_rule.rule) }}
223 {{ form_errors(form.new_tagging_rule.rule) }}
224 {{ form_widget(form.new_tagging_rule.rule) }}
225 </div>
226 </div>
227
228 <div class="row">
229 <div class="input-field col s12">
230 {{ form_label(form.new_tagging_rule.tags) }}
231 {{ form_errors(form.new_tagging_rule.tags) }}
232 {{ form_widget(form.new_tagging_rule.tags) }}
233 </div>
234 </div>
235
0d42217e
JB
236 {{ form_widget(form.new_tagging_rule.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
237 {{ form_rest(form.new_tagging_rule) }}
f19f9f62 238 </form>
e9fbd2d1
KG
239
240 <div class="row">
241 <div class="input-field col s12">
0d42217e 242 <h4>{{ 'config.form_rules.faq.title'|trans }}</h4>
5c514b0b 243
0d42217e
JB
244 <h5>{{ 'config.form_rules.faq.tagging_rules_definition_title'|trans }}</h5>
245 <p class="help">{{ 'config.form_rules.faq.tagging_rules_definition_description'|trans|raw }}</p>
5c514b0b 246
0d42217e
JB
247 <h5>{{ 'config.form_rules.faq.how_to_use_them_title'|trans }}</h5>
248 <p class="help">{{ 'config.form_rules.faq.how_to_use_them_description'|trans|raw }}</p>
5c514b0b 249
0d42217e 250 <h5>{{ 'config.form_rules.faq.variables_available_title'|trans }}</h5>
e9fbd2d1 251 <p class="help">
0d42217e 252 {{ 'config.form_rules.faq.variables_available_description'|trans }}
e9fbd2d1 253 </p>
8687bcd0
NL
254
255 <table class="bordered">
256 <thead>
257 <tr>
258 <th>{{ 'config.form_rules.faq.variable_description.label'|trans }}</th>
259 <th>{{ 'config.form_rules.faq.meaning'|trans }}</th>
260 <th>{{ 'config.form_rules.faq.operator_description.label'|trans }}</th>
261 <th>{{ 'config.form_rules.faq.meaning'|trans }}</th>
262 </tr>
263 </thead>
264
265 <tbody>
266 <tr>
267 <td>title</td>
268 <td>{{ 'config.form_rules.faq.variable_description.title'|trans }}</td>
269 <td>&lt;=</td>
270 <td>{{ 'config.form_rules.faq.operator_description.less_than'|trans }}</td>
271 </tr>
272 <tr>
273 <td>url</td>
274 <td>{{ 'config.form_rules.faq.variable_description.url'|trans }}</td>
275 <td>&lt;</td>
276 <td>{{ 'config.form_rules.faq.operator_description.strictly_less_than'|trans }}</td>
277 </tr>
278 <tr>
279 <td>isArchived</td>
280 <td>{{ 'config.form_rules.faq.variable_description.isArchived'|trans }}</td>
7a2157b8 281 <td>&gt;=</td>
8687bcd0
NL
282 <td>{{ 'config.form_rules.faq.operator_description.greater_than'|trans }}</td>
283 </tr>
284 <tr>
285 <td>isStarred</td>
286 <td>{{ 'config.form_rules.faq.variable_description.isStarred'|trans }}</td>
287 <td>&gt;</td>
288 <td>{{ 'config.form_rules.faq.operator_description.strictly_greater_than'|trans }}</td>
289 </tr>
290 <tr>
291 <td>content</td>
292 <td>{{ 'config.form_rules.faq.variable_description.content'|trans }}</td>
293 <td>=</td>
294 <td>{{ 'config.form_rules.faq.operator_description.equal_to'|trans }}</td>
295 </tr>
296 <tr>
297 <td>language</td>
298 <td>{{ 'config.form_rules.faq.variable_description.language'|trans }}</td>
299 <td>!=</td>
300 <td>{{ 'config.form_rules.faq.operator_description.not_equal_to'|trans }}</td>
301 </tr>
302 <tr>
303 <td>mimetype</td>
304 <td>{{ 'config.form_rules.faq.variable_description.mimetype'|trans }}</td>
305 <td>OR</td>
306 <td>{{ 'config.form_rules.faq.operator_description.or'|trans }}</td>
307 </tr>
308 <tr>
309 <td>readingTime</td>
310 <td>{{ 'config.form_rules.faq.variable_description.readingTime'|trans }}</td>
311 <td>AND</td>
312 <td>{{ 'config.form_rules.faq.operator_description.and'|trans }}</td>
313 </tr>
314 <tr>
315 <td>domainName</td>
316 <td>{{ 'config.form_rules.faq.variable_description.domainName'|trans }}</td>
317 <td>matches</td>
318 <td>{{ 'config.form_rules.faq.operator_description.matches'|trans|raw }}</td>
319 </tr>
320 </tbody>
321 </table>
e9fbd2d1
KG
322 </div>
323 </div>
f19f9f62
KG
324 </div>
325
fcb1fba5 326 {% if is_granted('ROLE_SUPER_ADMIN') %}
c13eda46 327 <div id="set6" class="col s12">
33fe61f9 328 {{ form_start(form.new_user) }}
53e12188
AD
329 {{ form_errors(form.new_user) }}
330
331 <div class="row">
332 <div class="input-field col s12">
333 {{ form_label(form.new_user.username) }}
334 {{ form_errors(form.new_user.username) }}
335 {{ form_widget(form.new_user.username) }}
336 </div>
337 </div>
338
339 <div class="row">
340 <div class="input-field col s12">
fcb1fba5
NL
341 {{ form_label(form.new_user.plainPassword.first) }}
342 {{ form_errors(form.new_user.plainPassword.first) }}
343 {{ form_widget(form.new_user.plainPassword.first) }}
344 </div>
345 </div>
346
347 <div class="row">
348 <div class="input-field col s12">
349 {{ form_label(form.new_user.plainPassword.second) }}
350 {{ form_errors(form.new_user.plainPassword.second) }}
351 {{ form_widget(form.new_user.plainPassword.second) }}
53e12188
AD
352 </div>
353 </div>
354
355 <div class="row">
356 <div class="input-field col s12">
357 {{ form_label(form.new_user.email) }}
358 {{ form_errors(form.new_user.email) }}
359 {{ form_widget(form.new_user.email) }}
360 </div>
361 </div>
362
0d42217e
JB
363 {{ form_widget(form.new_user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
364 {{ form_rest(form.new_user) }}
53e12188
AD
365 </form>
366 </div>
fcb1fba5 367 {% endif %}
53e12188
AD
368 </div>
369
370 </div>
371 </div>
372 </div>
53e12188 373{% endblock %}