]>
Commit | Line | Data |
---|---|---|
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | |
2 | ||
3 | {% block title %}{{ 'import.pocket.page_title'|trans }}{% endblock %} | |
4 | ||
5 | {% block content %} | |
6 | <div class="row"> | |
7 | <div class="col s12"> | |
8 | <div class="card-panel settings"> | |
9 | {% if not has_consumer_key %} | |
10 | <div class="card-panel red darken-1"> | |
11 | {{ 'import.pocket.config_missing.description'|trans }} | |
12 | ||
13 | {% if is_granted('ROLE_SUPER_ADMIN') %} | |
14 | {{ 'import.pocket.config_missing.admin_message'|trans({'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'})|raw }} | |
15 | {% else %} | |
16 | {{ 'import.pocket.config_missing.user_message'|trans }} | |
17 | {% endif %} | |
18 | </div> | |
19 | {% endif %} | |
20 | ||
21 | <blockquote>{{ import.description|trans }}</blockquote> | |
22 | <p>{{ 'import.pocket.authorize_message'|trans }}</p> | |
23 | ||
24 | <form method="post" action="{{ path('import_pocket_auth') }}"> | |
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> | |
31 | </div> | |
32 | <button class="btn waves-effect waves-light" type="submit" name="action"> | |
33 | {{ 'import.pocket.connect_to_pocket'|trans }} | |
34 | </button> | |
35 | </form> | |
36 | </div> | |
37 | </div> | |
38 | </div> | |
39 | {% endblock %} |