39 lines
802 B
HTML
39 lines
802 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
|
|
{% if form.errors %}
|
|
<section>
|
|
<p>Username and password do not match. Please try again.</p>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% if next %}
|
|
<section>
|
|
{% if user.is_authenticated %}
|
|
<p>You are not authorized to access this site. Please inform Benjamin to get the corresponding authorization.</p>
|
|
{% else %}
|
|
<p>Please log in to view this site.</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
<form action="{% url 'login' %}" method="post">
|
|
{% 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>
|
|
|
|
<input type="submit" value="Login">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
</form>
|
|
|
|
{% endblock %}
|