1 {% extends "WallabagCoreBundle::layout.html.twig" %}
3 {% block title %}{{ 'config.page_title'|trans }}{% endblock %}
9 <div class="card-panel settings">
12 <div class="div_tabs col s12">
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>
25 <div id="set1" class="col s12">
26 {{ form_start(form.config) }}
27 {{ form_errors(form.config) }}
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) }}
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) }}
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) }}
51 {{ 'config.form_settings.reading_speed.help_message'|trans }}
52 <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
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) }}
65 {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
66 {{ form_rest(form.config) }}
70 <div id="set2" class="col s12">
71 {{ form_start(form.rss) }}
72 {{ form_errors(form.rss) }}
75 <div class="input-field col s12">
76 {{ 'config.form_rss.description'|trans }}
81 <div class="input-field col s12">
82 <label>{{ 'config.form_rss.token_label'|trans }}</label>
87 <em>{{ 'config.form_rss.no_token'|trans }}</em>
89 – <a href="{{ path('generate_token') }}">
91 {{ 'config.form_rss.token_reset'|trans }}
93 {{ 'config.form_rss.token_create'|trans }}
100 <div class="input-field col s12">
101 <label>{{ 'config.form_rss.rss_links'|trans }}</label>
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>
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) }}
119 {{ form_widget(form.rss.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
120 {{ form_rest(form.rss) }}
124 <div id="set3" class="col s12">
125 {{ form_start(form.user) }}
126 {{ form_errors(form.user) }}
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) }}
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) }}
144 {% if twofactor_auth %}
146 <div class="input-field col s12">
147 {{ 'config.form_user.two_factor_description'|trans }}
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) }}
160 {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
161 {{ form_rest(form.user) }}
165 <div id="set4" class="col s12">
166 {{ form_start(form.pwd) }}
167 {{ form_errors(form.pwd) }}
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) }}
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) }}
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) }}
193 {{ form_widget(form.pwd.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
194 {{ form_rest(form.pwd) }}
198 <div id="set5" class="col s12">
200 <div class="input-field col s12">
202 {% for tagging_rule in app.user.config.taggingRules %}
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>
217 {{ form_start(form.new_tagging_rule) }}
218 {{ form_errors(form.new_tagging_rule) }}
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) }}
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) }}
236 {{ form_widget(form.new_tagging_rule.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
237 {{ form_rest(form.new_tagging_rule) }}
241 <div class="input-field col s12">
242 <h4>{{ 'config.form_rules.faq.title'|trans }}</h4>
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>
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>
250 <h5>{{ 'config.form_rules.faq.variables_available_title'|trans }}</h5>
252 {{ 'config.form_rules.faq.variables_available_description'|trans }}
255 <table class="bordered">
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>
268 <td>{{ 'config.form_rules.faq.variable_description.title'|trans }}</td>
270 <td>{{ 'config.form_rules.faq.operator_description.less_than'|trans }}</td>
274 <td>{{ 'config.form_rules.faq.variable_description.url'|trans }}</td>
276 <td>{{ 'config.form_rules.faq.operator_description.strictly_less_than'|trans }}</td>
280 <td>{{ 'config.form_rules.faq.variable_description.isArchived'|trans }}</td>
282 <td>{{ 'config.form_rules.faq.operator_description.greater_than'|trans }}</td>
286 <td>{{ 'config.form_rules.faq.variable_description.isStarred'|trans }}</td>
288 <td>{{ 'config.form_rules.faq.operator_description.strictly_greater_than'|trans }}</td>
292 <td>{{ 'config.form_rules.faq.variable_description.content'|trans }}</td>
294 <td>{{ 'config.form_rules.faq.operator_description.equal_to'|trans }}</td>
298 <td>{{ 'config.form_rules.faq.variable_description.language'|trans }}</td>
300 <td>{{ 'config.form_rules.faq.operator_description.not_equal_to'|trans }}</td>
304 <td>{{ 'config.form_rules.faq.variable_description.mimetype'|trans }}</td>
306 <td>{{ 'config.form_rules.faq.operator_description.or'|trans }}</td>
310 <td>{{ 'config.form_rules.faq.variable_description.readingTime'|trans }}</td>
312 <td>{{ 'config.form_rules.faq.operator_description.and'|trans }}</td>
316 <td>{{ 'config.form_rules.faq.variable_description.domainName'|trans }}</td>
318 <td>{{ 'config.form_rules.faq.operator_description.matches'|trans|raw }}</td>
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) }}
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) }}
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) }}
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) }}
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) }}
363 {{ form_widget(form.new_user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
364 {{ form_rest(form.new_user) }}