34 lines
1014 B
HTML
34 lines
1014 B
HTML
{% extends "registration/base_generic.html" %}
|
|
|
|
{% block content %}
|
|
<h1 class="display-4">Bienvenue sur Ogure NG</h1>
|
|
|
|
|
|
{% if user.is_authenticated %}
|
|
<p>Vous n'avez pas accès à cette page.<br/>
|
|
<a href="/">Cliquez ici</a> pour continuer.</p>
|
|
{% else %}
|
|
|
|
<br/>
|
|
<form method="post" action="{% url 'login' %}">
|
|
{% csrf_token %}
|
|
<table>
|
|
<tr>
|
|
<td>{{ form.username.label_tag }}</td>
|
|
<td>{{ form.username }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ form.password.label_tag }}</td>
|
|
<td>{{ form.password }}</td>
|
|
</tr>
|
|
</table>
|
|
<hr class="my-4">
|
|
{% if form.errors %}
|
|
<p class="lead text-danger">Your username and password didn't match. Please try again.</p>
|
|
{% endif %}
|
|
<!-- <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>-->
|
|
<input class="btn btn-primary btn-lg" type="submit" value="Connexion"/>
|
|
<input type="hidden" name="next" value="{{ next }}"/>
|
|
{% endif %}
|
|
</form>
|
|
{% endblock %} |