]> git.immae.eu Git - github/wallabag/wallabag.git/blob - 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
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}{{ 'config.page_title'|trans }}{% 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">{{ '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>
19 {% if is_granted('ROLE_SUPER_ADMIN') %}
20 <li class="tab col s3"><a href="#set6">{{ 'config.tab_menu.new_user'|trans }}</a></li>
21 {% endif %}
22 </ul>
23 </div>
24
25 <div id="set1" class="col s12">
26 {{ form_start(form.config) }}
27 {{ form_errors(form.config) }}
28
29 <div class="row">
30 <div class="input-field col s12">
31 {{ form_label(form.config.theme) }}
32 {{ form_errors(form.config.theme) }}
33 {{ form_widget(form.config.theme) }}
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
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) }}
50 <p>
51 {{ 'config.form_settings.reading_speed.help_message'|trans }}
52 <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
53 </p>
54 </div>
55 </div>
56
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
65 {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
66 {{ form_rest(form.config) }}
67 </form>
68 </div>
69
70 <div id="set2" class="col s12">
71 {{ form_start(form.rss) }}
72 {{ form_errors(form.rss) }}
73
74 <div class="row">
75 <div class="input-field col s12">
76 {{ 'config.form_rss.description'|trans }}
77 </div>
78 </div>
79
80 <div class="row">
81 <div class="input-field col s12">
82 <label>{{ 'config.form_rss.token_label'|trans }}</label>
83 <div>
84 {% if rss.token %}
85 {{ rss.token }}
86 {% else %}
87 <em>{{ 'config.form_rss.no_token'|trans }}</em>
88 {% endif %}
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>
95 </div>
96 </div>
97 </div>
98 {% if rss.token %}
99 <div class="row">
100 <div class="input-field col s12">
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>
107 </div>
108 </div>
109 {% endif %}
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
119 {{ form_widget(form.rss.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
120 {{ form_rest(form.rss) }}
121 </form>
122 </div>
123
124 <div id="set3" class="col s12">
125 {{ form_start(form.user) }}
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
144 {% if twofactor_auth %}
145 <div class="row">
146 <div class="input-field col s12">
147 {{ 'config.form_user.two_factor_description'|trans }}
148 </div>
149 </div>
150
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>
158 {% endif %}
159
160 {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
161 {{ form_rest(form.user) }}
162 </form>
163 </div>
164
165 <div id="set4" class="col s12">
166 {{ form_start(form.pwd) }}
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
193 {{ form_widget(form.pwd.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
194 {{ form_rest(form.pwd) }}
195 </form>
196 </div>
197
198 <div id="set5" class="col s12">
199 <div class="row">
200 <div class="input-field col s12">
201 <ul>
202 {% for tagging_rule in app.user.config.taggingRules %}
203 <li>
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 }}">
209 <i class="tool grey-text delete mdi-action-delete"></i>
210 </a>
211 </li>
212 {% endfor %}
213 </ul>
214 </div>
215 </div>
216
217 {{ form_start(form.new_tagging_rule) }}
218 {{ form_errors(form.new_tagging_rule) }}
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
236 {{ form_widget(form.new_tagging_rule.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
237 {{ form_rest(form.new_tagging_rule) }}
238 </form>
239
240 <div class="row">
241 <div class="input-field col s12">
242 <h4>{{ 'config.form_rules.faq.title'|trans }}</h4>
243
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>
246
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>
249
250 <h5>{{ 'config.form_rules.faq.variables_available_title'|trans }}</h5>
251 <p class="help">
252 {{ 'config.form_rules.faq.variables_available_description'|trans }}
253 </p>
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>
281 <td>&gt;=</td>
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>
322 </div>
323 </div>
324 </div>
325
326 {% if is_granted('ROLE_SUPER_ADMIN') %}
327 <div id="set6" class="col s12">
328 {{ form_start(form.new_user) }}
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">
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) }}
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
363 {{ form_widget(form.new_user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
364 {{ form_rest(form.new_user) }}
365 </form>
366 </div>
367 {% endif %}
368 </div>
369
370 </div>
371 </div>
372 </div>
373 {% endblock %}