]>
Commit | Line | Data |
---|---|---|
1f4408de | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
0d42217e JB |
2 | |
3 | {% block title %}{{ 'import.pocket.page_title'|trans }}{% endblock %} | |
1f4408de NL |
4 | |
5 | {% block content %} | |
1f4408de NL |
6 | <div class="row"> |
7 | <div class="col s12"> | |
8 | <div class="card-panel settings"> | |
1e3ed714 JB |
9 | {% if not has_consumer_key %} |
10 | <div class="card-panel red darken-1"> | |
0d42217e JB |
11 | {{ 'import.pocket.config_missing.description'|trans }} |
12 | ||
4c07a83b | 13 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
0d42217e | 14 | {{ 'import.pocket.config_missing.admin_message'|trans({'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'})|raw }} |
4c07a83b | 15 | {% else %} |
0d42217e | 16 | {{ 'import.pocket.config_missing.user_message'|trans }} |
4c07a83b | 17 | {% endif %} |
1e3ed714 JB |
18 | </div> |
19 | {% endif %} | |
20 | ||
b88cf91f | 21 | <blockquote>{{ import.description|trans }}</blockquote> |
0d42217e JB |
22 | <p>{{ 'import.pocket.authorize_message'|trans }}</p> |
23 | ||
252ebd60 | 24 | <form method="post" action="{{ path('import_pocket_auth') }}"> |
0d42217e JB |
25 | <div class="row"> |
26 | <div class="input-field col s6 with-checkbox"> | |
27 | <h6>{{ 'import.form.mark_as_read_title'|trans }}</h6> | |
28 | {{ form_widget(form.mark_as_read) }} | |
29 | {{ form_label(form.mark_as_read) }} | |
30 | </div> | |
c10fcb3b | 31 | </div> |
7019c7cf | 32 | <button class="btn waves-effect waves-light" type="submit" name="action"> |
0d42217e | 33 | {{ 'import.pocket.connect_to_pocket'|trans }} |
7019c7cf | 34 | </button> |
1f4408de NL |
35 | </form> |
36 | </div> | |
37 | </div> | |
38 | </div> | |
39 | {% endblock %} |