PCv5/templates/account/login.html

26 lines
742 B
HTML
Raw Normal View History

2016-10-02 17:07:47 +02:00
{% extends "base.html" %}
{% block title %}Planète Casio — Connexion{% endblock %}
{% block content %}
<article>
<h1>Formulaire de connexion</h1>
<div>
2017-04-03 12:44:58 +02:00
{% if data != None and data.login == False %}
<p><strong>{{ data.error }}</strong></p>
2016-10-02 17:07:47 +02:00
{% endif %}
{% if user.is_authenticated %}
Vous êtes connecté, {{ user.username }} !
{% else %}
2017-04-03 12:44:58 +02:00
<form method="post" action="/login" class="with-ajax">
{{ loginForm }}
2016-10-02 17:07:47 +02:00
{% csrf_token %}
2017-04-03 12:44:58 +02:00
<input type="submit" callback="login_page" value="Connexion"/>
2016-10-02 17:07:47 +02:00
</form>
2017-04-03 12:44:58 +02:00
<a href="/password-forgotten">Mot de passe oublié ?</a>
2016-10-02 17:07:47 +02:00
{% endif %}
</div>
</article>
{% endblock %}