18 lines
490 B
HTML
18 lines
490 B
HTML
{% extends 'front_template.html' %}
|
|
|
|
{% block body %}
|
|
|
|
{% if form.errors %}
|
|
<div class="error">Username/password mismatch. Please try again!</div>
|
|
{% endif %}
|
|
|
|
<form method="post" action="{% url 'accounts:login' %}">
|
|
{% csrf_token %}
|
|
{{ form.username.label_tag }} {{ form.username }}<br>
|
|
{{ form.password.label_tag }} {{ form.password }}<br>
|
|
|
|
<button type="submit">Login</button>
|
|
<input type="hidden" name="next" value="{% url 'booking:list' %}">
|
|
</form>
|
|
{% endblock %}
|