1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
cyberplanificateur/app/templates/settings.html
2019-04-29 15:53:18 +02:00

46 lines
1.3 KiB
HTML

{% extends "template.html" %}
{% block content %}
<!-- Main -->
<article id="main">
<header>
<h2>Settings</h2>
<p>Account settings of Cyberplanificateur</p>
</header>
<section class="wrapper style5">
<div class="inner">
<h3>Connexions</h3>
<p>Twitter :
{% if current_user.twitter_api.first() %}
<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>
{% endif %}
<p>Trello :
{% if current_user.trello_api.first() %}
<font color="green">Connected</font></p>
<a href="{{ url_for('trlogout') }}" class="button">Disconnect</a>
{% else %}
<font color="red">Disconnected</font></p>
<p><a href="{{ url_for('trlogin') }}">Click here</a> and give the token bellow</p>
<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>
</form>
{% endif %}
</div>
</section>
</article>
{% endblock %}