2021-12-20 20:37:32 +01:00
|
|
|
{% extends "authBase.html" %}
|
2022-01-27 23:21:11 +01:00
|
|
|
{% load rest_framework %}
|
2021-12-20 20:37:32 +01:00
|
|
|
|
2022-01-25 18:17:58 +01:00
|
|
|
{% block title %}Zaloguj się{% endblock %}
|
2021-12-20 20:37:32 +01:00
|
|
|
|
|
|
|
{% block content %}
|
2022-01-30 15:39:04 +01:00
|
|
|
<h2>Zaloguj się</h2>
|
2021-12-20 20:37:32 +01:00
|
|
|
<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 %}
|
2022-01-25 18:17:58 +01:00
|
|
|
<input type="submit" value="Zaloguj się">
|
2022-01-31 21:00:29 +01:00
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
2022-02-01 10:49:14 +01:00
|
|
|
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}" style="color:red">{{ message|safe }}</div>
|
2022-01-31 21:00:29 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2022-01-19 20:56:00 +01:00
|
|
|
<div class="linkDefault">
|
2022-01-25 18:17:58 +01:00
|
|
|
<a href="{% url 'resetPassword' %}">Zapomniałem hasła</a>
|
|
|
|
</div>
|
|
|
|
<div class="linkDefault">
|
|
|
|
<a href="{% url 'welcome' %}">Wróć</a>
|
2022-01-19 20:56:00 +01:00
|
|
|
</div>
|
2022-01-31 21:00:29 +01:00
|
|
|
|
2021-12-20 20:37:32 +01:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|
2021-12-09 23:25:35 +01:00
|
|
|
|