{% extends "base.html" %}
{% load static %}
{% block title %}
Вход
{% endblock title %}
{% block content %}
<link href="{% static 'css/users/login.css' %}" rel="stylesheet">
<div class="login_block">
    <h1>Вход в аккаунт</h1>
    {% include "includes/form.html" with form=form %}
    {% comment %}
    {% if echo %}
    <form method="post" action="{% url 'homepage:echo_submit' %}">
        {% else %}
        <form method="post">
            {% endif %}
            {% csrf_token %}
            {% for field in form.visible_fields %}
            <div class="mb-3 {% if field.widget_type == 'checkbox' %}form-check{% endif %}">
                <label for="{{ field.id_for_label }}" class="form-label">{{ field.label }}</label>
                {{ field }}
                {% if field.help_text %}
                <div class="form-text">{{ field.help_text }}</div>
                {% endif %}
            </div>
            {% endfor %}
            <button type="submit" class="btn btn-primary">Отправить</button>
        </form>
        {% endcomment %}
        <br>
        <a href="{% url 'users:signup' %}"
           class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">Создать
            аккаунт</a>
        {% endblock %}
</div>