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

47 lines
1.3 KiB
HTML
Raw Normal View History

{% 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 14:02:08 +02:00
<h3>Connexions</h3>
<p>Twitter :
2019-04-29 15:53:18 +02:00
{% 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>
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>
<a href="{{ url_for('trlogout') }}" class="button">Disconnect</a>
2019-04-28 14:02:08 +02:00
{% else %}
<font color="red">Disconnected</font></p>
<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 14:02:08 +02:00
</div>
</section>
</article>
{% endblock %}