]> git.immae.eu Git - github/wallabag/wallabag.git/blob - index.html.twig
ff7ef73a81509ac971aac10e47061aecc611b9b6
[github/wallabag/wallabag.git] / index.html.twig
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}{{ 'config.page_title'|trans }}{% endblock %}
4
5 {% block content %}
6 <h2>{{ 'config.tab_menu.settings'|trans }}</h2>
7
8 {{ form_start(form.config) }}
9 {{ form_errors(form.config) }}
10
11 <fieldset class="w500p inline">
12 <div class="row">
13 {{ form_label(form.config.theme) }}
14 {{ form_errors(form.config.theme) }}
15 {{ form_widget(form.config.theme) }}
16 </div>
17 </fieldset>
18
19 <fieldset class="w500p inline">
20 <div class="row">
21 {{ form_label(form.config.items_per_page) }}
22 {{ form_errors(form.config.items_per_page) }}
23 {{ form_widget(form.config.items_per_page) }}
24 </div>
25 </fieldset>
26
27 <fieldset class="w500p inline">
28 <div class="row">
29 {{ form_label(form.config.reading_speed) }}
30 {{ form_errors(form.config.reading_speed) }}
31 {{ form_widget(form.config.reading_speed) }}
32 <p>
33 {{ 'config.form_settings.reading_speed.help_message'|trans }}
34 <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
35 </p>
36 </div>
37 </fieldset>
38
39 <fieldset class="w500p inline">
40 <div class="row">
41 {{ form_label(form.config.language) }}
42 {{ form_errors(form.config.language) }}
43 {{ form_widget(form.config.language) }}
44 </div>
45 </fieldset>
46
47 <fieldset class="w500p inline">
48 <div class="row">
49 {{ form_label(form.config.pocket_consumer_key) }}
50 {{ form_errors(form.config.pocket_consumer_key) }}
51 {{ form_widget(form.config.pocket_consumer_key) }}
52 <p>
53 &raquo;
54 <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a>
55 </p>
56 </div>
57 </fieldset>
58
59 {{ form_rest(form.config) }}
60 </form>
61
62 <h2>{{ 'config.tab_menu.rss'|trans }}</h2>
63
64 {{ form_start(form.rss) }}
65 {{ form_errors(form.rss) }}
66
67 <div class="row">
68 {{ 'config.form_rss.description'|trans }}
69 </div>
70
71 <fieldset class="w500p inline">
72 <div class="row">
73 <label>Rss token</label>
74 {% if rss.token %}
75 {{ rss.token }}
76 {% else %}
77 <em>{{ 'config.form_rss.no_token'|trans }}</em>
78 {% endif %}
79
80 <a href="{{ path('generate_token') }}">
81 {% if rss.token %}
82 {{ 'config.form_rss.token_reset'|trans }}
83 {% else %}
84 {{ 'config.form_rss.token_create'|trans }}
85 {% endif %}
86 </a>
87 </div>
88 </fieldset>
89
90 {% if rss.token %}
91 <fieldset class="w500p inline">
92 <div class="row">
93 <label>{{ 'config.form_rss.rss_links'|trans }}</label>
94 <ul>
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>
98 </ul>
99 </div>
100 </fieldset>
101 {% endif %}
102
103 <fieldset class="w500p inline">
104 <div class="row">
105 {{ form_label(form.rss.rss_limit) }}
106 {{ form_errors(form.rss.rss_limit) }}
107 {{ form_widget(form.rss.rss_limit) }}
108 </div>
109 </fieldset>
110
111 {{ form_rest(form.rss) }}
112 </form>
113
114 <h2>{{ 'config.tab_menu.user_info'|trans }}</h2>
115
116 {{ form_start(form.user) }}
117 {{ form_errors(form.user) }}
118
119 <fieldset class="w500p inline">
120 <div class="row">
121 {{ form_label(form.user.name) }}
122 {{ form_errors(form.user.name) }}
123 {{ form_widget(form.user.name) }}
124 </div>
125 </fieldset>
126
127 <fieldset class="w500p inline">
128 <div class="row">
129 {{ form_label(form.user.email) }}
130 {{ form_errors(form.user.email) }}
131 {{ form_widget(form.user.email) }}
132 </div>
133 </fieldset>
134
135 {% if twofactor_auth %}
136 <div class="row">
137 {{ 'config.form_user.two_factor_description'|trans }}
138 </div>
139
140 <fieldset class="w500p inline">
141 <div class="row">
142 {{ form_label(form.user.twoFactorAuthentication) }}
143 {{ form_errors(form.user.twoFactorAuthentication) }}
144 {{ form_widget(form.user.twoFactorAuthentication) }}
145 </div>
146 </fieldset>
147 {% endif %}
148
149 {{ form_widget(form.user._token) }}
150 {{ form_widget(form.user.save) }}
151 </form>
152
153 <h2>{{ 'config.tab_menu.password'|trans }}</h2>
154
155 {{ form_start(form.pwd) }}
156 {{ form_errors(form.pwd) }}
157
158 <fieldset class="w500p inline">
159 <div class="row">
160 {{ form_label(form.pwd.old_password) }}
161 {{ form_errors(form.pwd.old_password) }}
162 {{ form_widget(form.pwd.old_password) }}
163 </div>
164 </fieldset>
165
166 <fieldset class="w500p inline">
167 <div class="row">
168 {{ form_label(form.pwd.new_password.first) }}
169 {{ form_errors(form.pwd.new_password.first) }}
170 {{ form_widget(form.pwd.new_password.first) }}
171 </div>
172 </fieldset>
173
174 <fieldset class="w500p inline">
175 <div class="row">
176 {{ form_label(form.pwd.new_password.second) }}
177 {{ form_errors(form.pwd.new_password.second) }}
178 {{ form_widget(form.pwd.new_password.second) }}
179 </div>
180 </fieldset>
181
182 {{ form_rest(form.pwd) }}
183 </form>
184
185 <h2>{{ 'config.tab_menu.rules'|trans }}</h2>
186
187 <ul>
188 {% for tagging_rule in app.user.config.taggingRules %}
189 <li>
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>
196 </li>
197 {% endfor %}
198 </ul>
199
200 {{ form_start(form.new_tagging_rule) }}
201 {{ form_errors(form.new_tagging_rule) }}
202
203 <fieldset class="w500p inline">
204 <div class="row">
205 {{ form_label(form.new_tagging_rule.rule) }}
206 {{ form_errors(form.new_tagging_rule.rule) }}
207 {{ form_widget(form.new_tagging_rule.rule) }}
208 </div>
209 </fieldset>
210
211 <fieldset class="w500p inline">
212 <div class="row">
213 {{ form_label(form.new_tagging_rule.tags) }}
214 {{ form_errors(form.new_tagging_rule.tags) }}
215 {{ form_widget(form.new_tagging_rule.tags) }}
216 </div>
217 </fieldset>
218
219 {{ form_rest(form.new_tagging_rule) }}
220 </form>
221 <div class="row">
222 <div class="input-field col s12">
223 <h3>{{ 'config.form_rules.faq.title'|trans }}</h3>
224
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>
227
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>
230
231 <h4>{{ 'config.form_rules.faq.variables_available_title'|trans }}</h4>
232 <p class="help">
233 {{ 'config.form_rules.faq.variables_available_description'|trans }}
234 </p>
235
236 <table class="bordered">
237 <thead>
238 <tr>
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>
243 </tr>
244 </thead>
245
246 <tbody>
247 <tr>
248 <td>title</td>
249 <td>{{ 'config.form_rules.faq.variable_description.title'|trans }}</td>
250 <td>&lt;=</td>
251 <td>{{ 'config.form_rules.faq.operator_description.less_than'|trans }}</td>
252 </tr>
253 <tr>
254 <td>url</td>
255 <td>{{ 'config.form_rules.faq.variable_description.url'|trans }}</td>
256 <td>&lt;</td>
257 <td>{{ 'config.form_rules.faq.operator_description.strictly_less_than'|trans }}</td>
258 </tr>
259 <tr>
260 <td>isArchived</td>
261 <td>{{ 'config.form_rules.faq.variable_description.isArchived'|trans }}</td>
262 <td>&gt;=</td>
263 <td>{{ 'config.form_rules.faq.operator_description.greater_than'|trans }}</td>
264 </tr>
265 <tr>
266 <td>isStarred</td>
267 <td>{{ 'config.form_rules.faq.variable_description.isStarred'|trans }}</td>
268 <td>&gt;</td>
269 <td>{{ 'config.form_rules.faq.operator_description.strictly_greater_than'|trans }}</td>
270 </tr>
271 <tr>
272 <td>content</td>
273 <td>{{ 'config.form_rules.faq.variable_description.content'|trans }}</td>
274 <td>=</td>
275 <td>{{ 'config.form_rules.faq.operator_description.equal_to'|trans }}</td>
276 </tr>
277 <tr>
278 <td>language</td>
279 <td>{{ 'config.form_rules.faq.variable_description.language'|trans }}</td>
280 <td>!=</td>
281 <td>{{ 'config.form_rules.faq.operator_description.not_equal_to'|trans }}</td>
282 </tr>
283 <tr>
284 <td>mimetype</td>
285 <td>{{ 'config.form_rules.faq.variable_description.mimetype'|trans }}</td>
286 <td>OR</td>
287 <td>{{ 'config.form_rules.faq.operator_description.or'|trans }}</td>
288 </tr>
289 <tr>
290 <td>readingTime</td>
291 <td>{{ 'config.form_rules.faq.variable_description.readingTime'|trans }}</td>
292 <td>AND</td>
293 <td>{{ 'config.form_rules.faq.operator_description.and'|trans }}</td>
294 </tr>
295 <tr>
296 <td>domainName</td>
297 <td>{{ 'config.form_rules.faq.variable_description.domainName'|trans }}</td>
298 <td>matches</td>
299 <td>{{ 'config.form_rules.faq.operator_description.matches'|trans|raw }}</td>
300 </tr>
301 </tbody>
302 </table>
303 </div>
304 </div>
305 {% endblock %}