1 {% extends "WallabagCoreBundle::layout.html.twig" %}
3 {% block title %}{{ 'config.page_title'|trans }}{% endblock %}
6 <h2>{{ 'config.tab_menu.settings'|trans }}</h2>
8 {{ form_start(form.config) }}
9 {{ form_errors(form.config) }}
11 <fieldset class="w500p inline">
13 {{ form_label(form.config.theme) }}
14 {{ form_errors(form.config.theme) }}
15 {{ form_widget(form.config.theme) }}
19 <fieldset class="w500p inline">
21 {{ form_label(form.config.items_per_page) }}
22 {{ form_errors(form.config.items_per_page) }}
23 {{ form_widget(form.config.items_per_page) }}
27 <fieldset class="w500p inline">
29 {{ form_label(form.config.reading_speed) }}
30 {{ form_errors(form.config.reading_speed) }}
31 {{ form_widget(form.config.reading_speed) }}
33 {{ 'config.form_settings.reading_speed.help_message'|trans }}
34 <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
39 <fieldset class="w500p inline">
41 {{ form_label(form.config.language) }}
42 {{ form_errors(form.config.language) }}
43 {{ form_widget(form.config.language) }}
47 <fieldset class="w500p inline">
49 {{ form_label(form.config.pocket_consumer_key) }}
50 {{ form_errors(form.config.pocket_consumer_key) }}
51 {{ form_widget(form.config.pocket_consumer_key) }}
54 <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a>
59 {{ form_rest(form.config) }}
62 <h2>{{ 'config.tab_menu.rss'|trans }}</h2>
64 {{ form_start(form.rss) }}
65 {{ form_errors(form.rss) }}
68 {{ 'config.form_rss.description'|trans }}
71 <fieldset class="w500p inline">
73 <label>Rss token</label>
77 <em>{{ 'config.form_rss.no_token'|trans }}</em>
80 <a href="{{ path('generate_token') }}">
82 {{ 'config.form_rss.token_reset'|trans }}
84 {{ 'config.form_rss.token_create'|trans }}
91 <fieldset class="w500p inline">
93 <label>{{ 'config.form_rss.rss_links'|trans }}</label>
95 <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">unread</a></li>
96 <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">fav</a></li>
97 <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">archives</a></li>
103 <fieldset class="w500p inline">
105 {{ form_label(form.rss.rss_limit) }}
106 {{ form_errors(form.rss.rss_limit) }}
107 {{ form_widget(form.rss.rss_limit) }}
111 {{ form_rest(form.rss) }}
114 <h2>{{ 'config.tab_menu.user_info'|trans }}</h2>
116 {{ form_start(form.user) }}
117 {{ form_errors(form.user) }}
119 <fieldset class="w500p inline">
121 {{ form_label(form.user.name) }}
122 {{ form_errors(form.user.name) }}
123 {{ form_widget(form.user.name) }}
127 <fieldset class="w500p inline">
129 {{ form_label(form.user.email) }}
130 {{ form_errors(form.user.email) }}
131 {{ form_widget(form.user.email) }}
135 {% if twofactor_auth %}
137 {{ 'config.form_user.two_factor_description'|trans }}
140 <fieldset class="w500p inline">
142 {{ form_label(form.user.twoFactorAuthentication) }}
143 {{ form_errors(form.user.twoFactorAuthentication) }}
144 {{ form_widget(form.user.twoFactorAuthentication) }}
149 {{ form_widget(form.user._token) }}
150 {{ form_widget(form.user.save) }}
153 <h2>{{ 'config.tab_menu.password'|trans }}</h2>
155 {{ form_start(form.pwd) }}
156 {{ form_errors(form.pwd) }}
158 <fieldset class="w500p inline">
160 {{ form_label(form.pwd.old_password) }}
161 {{ form_errors(form.pwd.old_password) }}
162 {{ form_widget(form.pwd.old_password) }}
166 <fieldset class="w500p inline">
168 {{ form_label(form.pwd.new_password.first) }}
169 {{ form_errors(form.pwd.new_password.first) }}
170 {{ form_widget(form.pwd.new_password.first) }}
174 <fieldset class="w500p inline">
176 {{ form_label(form.pwd.new_password.second) }}
177 {{ form_errors(form.pwd.new_password.second) }}
178 {{ form_widget(form.pwd.new_password.second) }}
182 {{ form_rest(form.pwd) }}
185 <h2>{{ 'config.tab_menu.rules'|trans }}</h2>
188 {% for tagging_rule in app.user.config.taggingRules %}
190 {{ 'config.form_rules.if_label'|trans }}
191 « {{ tagging_rule.rule }} »
192 {{ 'config.form_rules.then_tag_as_label'|trans }}
193 « {{ tagging_rule.tags|join(', ') }} »
194 <a href="{{ path('edit_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.edit_rule_label'|trans }}" class="tool mode_edit">✎</a>
195 <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.delete_rule_label'|trans }}" class="tool delete icon-trash icon"></a>
200 {{ form_start(form.new_tagging_rule) }}
201 {{ form_errors(form.new_tagging_rule) }}
203 <fieldset class="w500p inline">
205 {{ form_label(form.new_tagging_rule.rule) }}
206 {{ form_errors(form.new_tagging_rule.rule) }}
207 {{ form_widget(form.new_tagging_rule.rule) }}
211 <fieldset class="w500p inline">
213 {{ form_label(form.new_tagging_rule.tags) }}
214 {{ form_errors(form.new_tagging_rule.tags) }}
215 {{ form_widget(form.new_tagging_rule.tags) }}
219 {{ form_rest(form.new_tagging_rule) }}
222 <div class="input-field col s12">
223 <h3>{{ 'config.form_rules.faq.title'|trans }}</h3>
225 <h4>{{ 'config.form_rules.faq.tagging_rules_definition_title'|trans }}</h4>
226 <p class="help">{{ 'config.form_rules.faq.tagging_rules_definition_description'|trans|raw }}</p>
228 <h4>{{ 'config.form_rules.faq.how_to_use_them_title'|trans }}</h4>
229 <p class="help">{{ 'config.form_rules.faq.how_to_use_them_description'|trans|raw }}</p>
231 <h4>{{ 'config.form_rules.faq.variables_available_title'|trans }}</h4>
233 {{ 'config.form_rules.faq.variables_available_description'|trans }}
236 <table class="bordered">
239 <th>{{ 'config.form_rules.faq.variable_description.label'|trans }}</th>
240 <th>{{ 'config.form_rules.faq.meaning'|trans }}</th>
241 <th>{{ 'config.form_rules.faq.operator_description.label'|trans }}</th>
242 <th>{{ 'config.form_rules.faq.meaning'|trans }}</th>
249 <td>{{ 'config.form_rules.faq.variable_description.title'|trans }}</td>
251 <td>{{ 'config.form_rules.faq.operator_description.less_than'|trans }}</td>
255 <td>{{ 'config.form_rules.faq.variable_description.url'|trans }}</td>
257 <td>{{ 'config.form_rules.faq.operator_description.strictly_less_than'|trans }}</td>
261 <td>{{ 'config.form_rules.faq.variable_description.isArchived'|trans }}</td>
263 <td>{{ 'config.form_rules.faq.operator_description.greater_than'|trans }}</td>
267 <td>{{ 'config.form_rules.faq.variable_description.isStarred'|trans }}</td>
269 <td>{{ 'config.form_rules.faq.operator_description.strictly_greater_than'|trans }}</td>
273 <td>{{ 'config.form_rules.faq.variable_description.content'|trans }}</td>
275 <td>{{ 'config.form_rules.faq.operator_description.equal_to'|trans }}</td>
279 <td>{{ 'config.form_rules.faq.variable_description.language'|trans }}</td>
281 <td>{{ 'config.form_rules.faq.operator_description.not_equal_to'|trans }}</td>
285 <td>{{ 'config.form_rules.faq.variable_description.mimetype'|trans }}</td>
287 <td>{{ 'config.form_rules.faq.operator_description.or'|trans }}</td>
291 <td>{{ 'config.form_rules.faq.variable_description.readingTime'|trans }}</td>
293 <td>{{ 'config.form_rules.faq.operator_description.and'|trans }}</td>
297 <td>{{ 'config.form_rules.faq.variable_description.domainName'|trans }}</td>
299 <td>{{ 'config.form_rules.faq.operator_description.matches'|trans|raw }}</td>