Add login/logout functionality

This commit is contained in:
2014-12-17 13:30:58 +01:00
committed by Gergely Polonkai
parent 5e23c73594
commit 4d9f4242e3
7 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
{% 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 %}