Add login/logout functionality
This commit is contained in:
17
accounts/templates/accounts/login.html
Normal file
17
accounts/templates/accounts/login.html
Normal 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 %}
|
Reference in New Issue
Block a user