SOITA/templates/login.html
2022-01-27 23:21:11 +01:00

29 lines
783 B
HTML

{% extends "authBase.html" %}
{% load rest_framework %}
{% block title %}Zaloguj się{% endblock %}
{% block content %}
<h2>Zaloguj się</h2>
<form method="post"> {% csrf_token %}
{% for field in login_form %}
<p>
{{field.label_tag}}
{{field}}
{% for error in field.errors %}
<p style="color: red;">{{error}}</p>
{% endfor %}
</p>
{% endfor %}
<input type="submit" value="Zaloguj się">
<div class="linkDefault">
<a href="{% url 'resetPassword' %}">Zapomniałem hasła</a>
</div>
<div class="linkDefault">
<a href="{% url 'welcome' %}">Wróć</a>
</div>
</form>
{% endblock %}