SOITA/templates/login.html
Hubert Jankowski 999ae564b8 fixes
2022-01-31 21:00:29 +01:00

35 lines
1019 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ę">
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div>
{% endfor %}
{% endif %}
<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 %}