2021-01-28 18:12:42 -07:00

34 lines
843 B
HTML

{% extends 'application.html' %}
{% block content %}
<section>
<h1>Log in</h1>
{% if form.errors %}
<p class="error">Your username and password didn't match. Please try again.</p>
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<p>
{{ form.username.label_tag }}
<br>
{{ form.username }}
</p>
<p>
{{ form.password.label_tag }}
<br>
{{ form.password }}
<small>
Forgot your password? <a href="{% url 'password_reset' %}">Reset your password here</a>.
</small>
</p>
<p>
<input type="submit" value="Login">
<input type="hidden" name="next" value="{{ next }}">
</p>
</form>
</section>
{% endblock %}