Files
santeh-ray/templates/users/login.html
Azimkin 4f4a1a55e5
All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
feat: add FAQ question form with email notifications and validations
- Created `FaqQuestionForm` in `forms.py` with custom field validations
- Added FAQ form to the FAQ section with CSRF protection and error handling
- Integrated email notifications to administrator upon FAQ submission
- Updated styles and scripts for form inputs, validation messages, and messages UI
- Adjusted FAQ section layout in `faq.html` and related CSS for responsiveness
- Implemented tests for FAQ form submission and email notifications
2026-04-19 22:51:56 +02:00

84 lines
3.9 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 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 %}