2016-07-08 18:11:53 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
|
|
|
|
{% block title %}Login{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if form.errors %}
|
|
|
|
<p>Your username and password didn't match. Please try again.</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if next %}
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p>Your account doesn't have access to this page. To proceed,
|
|
|
|
please login with an account that has access.</p>
|
|
|
|
{% else %}
|
|
|
|
<p>Please login to see this page.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-07-20 10:06:33 +00:00
|
|
|
<p><form method="post" action="{% url 'django.contrib.auth.views.login' %}">
|
2016-07-08 18:11:53 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{% bootstrap_form form %}
|
|
|
|
{% bootstrap_button "Login" button_type="submit" icon="log-in" %}
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
2016-07-20 10:06:33 +00:00
|
|
|
</form></p>
|
|
|
|
<p><a class="btn btn-warning btn-sm" role="button" href="{% url 'users:reset-password' %}"> Mot de passe oublié ?</a></p>
|
2016-07-08 18:11:53 +00:00
|
|
|
|
|
|
|
{% endblock %}
|