This commit is contained in:
2022-11-08 21:19:51 +01:00
commit 4c456eafc3
160 changed files with 21472 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{% 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 %}