25 lines
613 B
HTML
25 lines
613 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Planète Casio — Connexion{% endblock %}
|
|
|
|
{% block content %}
|
|
<article>
|
|
<h1>Formulaire de connexion</h1>
|
|
<div>
|
|
{% if error %}
|
|
<p><strong>Utilisateur inexistant ou mauvais de mot de passe.</strong></p>
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
Vous êtes connecté, {{ user.username }} !
|
|
{% else %}
|
|
<form method="post" action=".">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<input type="submit"/>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</article>
|
|
{% endblock %}
|