Add login
This commit is contained in:
parent
e38b781ff9
commit
1f48c41005
5 changed files with 34 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
{% block body %}
|
||||
<h1>Nummi</h1>
|
||||
|
||||
<a href="{% url 'logout' %}">Logout</a>
|
||||
<a href="{% url 'transaction' %}">Add transaction</a>
|
||||
|
||||
{% if transactions %}
|
||||
|
|
14
nummi/main/templates/main/login.html
Normal file
14
nummi/main/templates/main/login.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends "main/base.html" %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h1>Login</h1>
|
||||
|
||||
<form action="{% url 'login' %}" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input hidden value="{{ next }}" name="next" />
|
||||
<input type="submit" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue