2019-04-28 12:29:03 +02:00
|
|
|
{% extends "template.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
2019-04-28 14:02:08 +02:00
|
|
|
<!-- Main -->
|
|
|
|
<article id="main">
|
|
|
|
<header>
|
|
|
|
<h2>Settings</h2>
|
2019-04-28 15:09:39 +02:00
|
|
|
<p>Account settings of Cyberplanificateur</p>
|
2019-04-28 14:02:08 +02:00
|
|
|
</header>
|
|
|
|
<section class="wrapper style5">
|
|
|
|
<div class="inner">
|
2019-04-28 12:29:03 +02:00
|
|
|
|
2019-04-28 14:02:08 +02:00
|
|
|
<h3>Connexions</h3>
|
2019-04-29 01:49:40 +02:00
|
|
|
<p>Twitter :
|
2019-04-29 15:53:18 +02:00
|
|
|
{% if current_user.twitter_api.first() %}
|
2019-04-29 01:49:40 +02:00
|
|
|
<font color="green">Connected</font></p>
|
|
|
|
<a href="{{ url_for('twlogout') }}" class="button">Disconnect</a>
|
|
|
|
{% else %}
|
|
|
|
<font color="red">Disconnected</font></p>
|
|
|
|
<a href="{{ url_for('twlogin') }}" class="button primary">Connect</a>
|
2019-04-28 14:02:08 +02:00
|
|
|
{% endif %}
|
|
|
|
<p>Trello :
|
2019-04-29 15:53:18 +02:00
|
|
|
{% if current_user.trello_api.first() %}
|
2019-04-28 14:02:08 +02:00
|
|
|
<font color="green">Connected</font></p>
|
2019-04-29 01:49:40 +02:00
|
|
|
<a href="{{ url_for('trlogout') }}" class="button">Disconnect</a>
|
2019-04-28 14:02:08 +02:00
|
|
|
{% else %}
|
|
|
|
<font color="red">Disconnected</font></p>
|
2019-04-29 01:49:40 +02:00
|
|
|
<p><a href="{{ url_for('trlogin') }}">Click here</a> and give the token bellow</p>
|
2019-04-29 15:53:18 +02:00
|
|
|
<form action = "" method = "POST" novalidate>
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
<p>
|
|
|
|
{{ form.token.label }}
|
|
|
|
{{ form.token(size=64) }}
|
|
|
|
{% for error in form.token.errors %}
|
|
|
|
<span style="color: red;">[{{ error }}]</span>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
<p>{{ form.submit() }}</p>
|
2019-04-28 14:02:08 +02:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
2019-04-28 12:29:03 +02:00
|
|
|
|
2019-04-28 14:02:08 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</article>
|
2019-04-28 12:29:03 +02:00
|
|
|
|
|
|
|
{% endblock %}
|