Add login

This commit is contained in:
Edgar P. Burkhart 2022-05-20 15:06:37 +02:00
parent e38b781ff9
commit 1f48c41005
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
5 changed files with 34 additions and 0 deletions

View file

@ -3,6 +3,7 @@
{% block body %}
<h1>Nummi</h1>
<a href="{% url 'logout' %}">Logout</a>
<a href="{% url 'transaction' %}">Add transaction</a>
{% if transactions %}

View 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 %}