Files
santeh-ray/templates/users/login.html
Azimkin c8e65146ec
All checks were successful
Build and Push Docker Image / build (push) Successful in 41s
Fix home button routes and login redirects
2026-06-16 09:50:32 +02:00

87 lines
4.0 KiB
HTML

{% extends '_layouts/base.html' %}
{% load static %}
{% block title %}Вход{% endblock %}
{% block add_css %}
<link rel="stylesheet" href="{% static 'css/login.css' %}">
{% endblock %}
{% block content %}
<div class="full-page">
{% include "_fragments/header.html" %}
<main class="auth-section">
<div class="container auth-layout">
<section class="auth-intro auth-intro--login">
<p class="auth-kicker">Личный кабинет</p>
<h1 id="login-title" class="auth-title">Вход в аккаунт</h1>
<p class="auth-description">
Войдите, чтобы управлять заказами, сохранять избранные товары и быстрее оформлять покупки.
</p>
<a class="auth-side-link" href="/catalog/">Перейти в каталог</a>
</section>
<section class="auth-panel" aria-labelledby="login-title">
<form class="auth-form" action="" method="post">
{% csrf_token %}
{% if next_url %}
<input type="hidden" name="next" value="{{ next_url }}">
{% endif %}
{% if form.non_field_errors %}
<div class="auth-alert auth-alert--error">
{% for error in form.non_field_errors %}
<p>{{ error }}</p>
{% endfor %}
</div>
{% endif %}
<div class="auth-field">
<label for="{{ form.email.id_for_label }}">Электронная почта</label>
<input
id="{{ form.email.id_for_label }}"
name="{{ form.email.html_name }}"
type="email"
value="{{ form.email.value|default:'' }}"
placeholder="example@mail.ru"
autocomplete="email"
>
{% for error in form.email.errors %}
<p class="auth-field-error">{{ error }}</p>
{% endfor %}
</div>
<div class="auth-field">
<label for="{{ form.password.id_for_label }}">Пароль</label>
<input
id="{{ form.password.id_for_label }}"
name="{{ form.password.html_name }}"
type="password"
placeholder="Введите пароль"
autocomplete="current-password"
>
{% for error in form.password.errors %}
<p class="auth-field-error">{{ error }}</p>
{% endfor %}
<a class="auth-secondary-link" href="{% url 'users:password_reset' %}">Сбросить пароль</a>
</div>
<div class="auth-actions">
<div class="auth-buttons">
<button class="auth-submit" type="submit">Войти</button>
</div>
<p class="auth-switch">
Нет аккаунта?
<a href="{% url 'users:register' %}">Зарегистрироваться</a>
</p>
</div>
</form>
</section>
</div>
</main>
{% include "_fragments/footer.html" %}
</div>
{% endblock %}