]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig
Moved Pocket token to user config
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Resources / views / Pocket / index.html.twig
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 {% include 'WallabagImportBundle:Import:_workerEnabled.html.twig' %}
10
11 {% if not has_consumer_key %}
12 <div class="card-panel red white-text">
13 {{ 'import.pocket.config_missing.description'|trans }}
14
15 {{ 'import.pocket.config_missing.admin_message'|trans({'%keyurls%': '<a href="' ~ path('config') ~ '">', '%keyurle%':'</a>'})|raw }}
16 </div>
17 {% endif %}
18
19 <blockquote>{{ import.description|trans }}</blockquote>
20 <p>{{ 'import.pocket.authorize_message'|trans }}</p>
21
22 <form method="post" action="{{ path('import_pocket_auth') }}">
23 <div class="row">
24 <div class="input-field col s6 with-checkbox">
25 <h6>{{ 'import.form.mark_as_read_title'|trans }}</h6>
26 {{ form_widget(form.mark_as_read) }}
27 {{ form_label(form.mark_as_read) }}
28 </div>
29 </div>
30 <button class="btn waves-effect waves-light" type="submit" name="action" {% if not has_consumer_key %}disabled="disabled"{% endif %}>
31 {{ 'import.pocket.connect_to_pocket'|trans }}
32 </button>
33 </form>
34 </div>
35 </div>
36 </div>
37 {% endblock %}