SOITA/templates/login.html

35 lines
1.0 KiB
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 %}" style="color:red">{{ 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 %}