59 lines
1.4 KiB
HTML
59 lines
1.4 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
|
|
{% block content %}
|
|
<article>
|
|
<h1>Log in</h1>
|
|
{% 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 %}
|
|
|
|
<form method="post" action="{% url 'login' %}">
|
|
{% csrf_token %}
|
|
<table class="form-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>
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<small>
|
|
Forgot your password?
|
|
<a class="password__reset hover" href="{% url 'password_reset' %}">Reset your password here</a>.
|
|
</small>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<button type="submit">Log in</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
</form>
|
|
</article>
|
|
{% endblock %}
|
|
|