]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig
Disable translation in test
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Resources / views / Pocket / index.html.twig
CommitLineData
1f4408de 1{% extends "WallabagCoreBundle::layout.html.twig" %}
7019c7cf 2{% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %}
1f4408de
NL
3
4{% block content %}
1f4408de
NL
5<div class="row">
6 <div class="col s12">
7 <div class="card-panel settings">
1e3ed714
JB
8 {% if not has_consumer_key %}
9 <div class="card-panel red darken-1">
4c07a83b
TC
10 {% trans %}Pocket import isn't configured.{% endtrans %}
11 {% if is_granted('ROLE_SUPER_ADMIN') %}
12 {% trans with {'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'} %}You need to define %keyurls% a pocket_consumer_key %keyurle%.{% endtrans %}
13 {% else %}
14 {% trans %}Your server admin needs to define an API Key for Pocket.{% endtrans %}
15 {% endif %}
1e3ed714
JB
16 </div>
17 {% endif %}
18
b88cf91f 19 <blockquote>{{ import.description|trans }}</blockquote>
7019c7cf 20 <p>{% trans %}You can import your data from your Pocket account. You just have to click on the below button and authorize the application to connect to getpocket.com.{% endtrans %}</p>
252ebd60 21 <form method="post" action="{{ path('import_pocket_auth') }}">
c10fcb3b
TC
22 <div class="row">
23 <div class="input-field col s6 with-checkbox">
24 <h6>{% trans %}Mark all as read ?{% endtrans %}</h6>
25 {{ form_widget(form.read) }}
26 <label for="form_read">{% trans %}Mark all imported entries as read{% endtrans %}</label>
27 </div>
28 </div>
7019c7cf 29 <button class="btn waves-effect waves-light" type="submit" name="action">
d1af8ad4 30 {% trans %}Connect to Pocket and import data{% endtrans %}
7019c7cf 31 </button>
1f4408de
NL
32 </form>
33 </div>
34 </div>
35</div>
36{% endblock %}