2015-10-20 13:58:13 +02:00
{% extends "WallabagCoreBundle::layout.html.twig" %}
2015-12-31 11:24:46 +01:00
{% block title %} {% trans %} Import > Pocket {% endtrans %} {% endblock %}
2015-10-20 13:58:13 +02:00
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel settings">
2016-01-21 10:59:21 +01:00
{% if not has_consumer_key %}
<div class="card-panel red darken-1">
2016-02-11 01:42:37 +01:00
{% trans %} Pocket import isn't configured. {% endtrans %}
{% if is_granted ( 'ROLE_SUPER_ADMIN' ) %}
{% 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 %}
{% else %}
{% trans %} Your server admin needs to define an API Key for Pocket. {% endtrans %}
{% endif %}
2016-01-21 10:59:21 +01:00
</div>
{% endif %}
2016-01-06 06:34:57 +01:00
<blockquote> {{ import .description | trans }} </blockquote>
2015-12-31 11:24:46 +01:00
<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>
2015-12-30 12:23:51 +01:00
<form method="post" action=" {{ path ( 'import_pocket_auth' ) }} ">
2016-02-13 14:32:16 +01:00
<div class="row">
<div class="input-field col s6 with-checkbox">
<h6> {% trans %} Mark all as read ? {% endtrans %} </h6>
{{ form_widget ( form .read ) }}
<label for="form_read"> {% trans %} Mark all imported entries as read {% endtrans %} </label>
</div>
</div>
2015-12-31 11:24:46 +01:00
<button class="btn waves-effect waves-light" type="submit" name="action">
2016-01-05 22:38:09 +01:00
{% trans %} Connect to Pocket and import data {% endtrans %}
2015-12-31 11:24:46 +01:00
</button>
2015-10-20 13:58:13 +02:00
</form>
</div>
</div>
</div>
{% endblock %}