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