26 lines
742 B
HTML
26 lines
742 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Planète Casio — Connexion{% endblock %}
|
|
|
|
{% block content %}
|
|
<article>
|
|
<h1>Formulaire de connexion</h1>
|
|
<div>
|
|
{% if data != None and data.login == False %}
|
|
<p><strong>{{ data.error }}</strong></p>
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
Vous êtes connecté, {{ user.username }} !
|
|
{% else %}
|
|
<form method="post" action="/login" class="with-ajax">
|
|
{{ loginForm }}
|
|
{% csrf_token %}
|
|
<input type="submit" callback="login_page" value="Connexion"/>
|
|
</form>
|
|
<a href="/password-forgotten">Mot de passe oublié ?</a>
|
|
{% endif %}
|
|
</div>
|
|
</article>
|
|
{% endblock %}
|