Spaces:
No application file
No application file
| {% extends "base_public.html" %} | |
| {% block title %}Регистрация{% endblock %} | |
| {% block content %} | |
| <div class="auth-container"> | |
| <div class="auth-card"> | |
| <div class="auth-header"> | |
| <h3><i class="fas fa-user-plus"></i> Регистрация</h3> | |
| </div> | |
| <div class="auth-body"> | |
| <form method="POST" action="{{ url_for('.register') }}"> | |
| {{ form.hidden_tag() }} | |
| <div class="form-group"> | |
| <label for="username" class="form-label"> | |
| <i class="fas fa-user"></i> Имя пользователя | |
| </label> | |
| {{ form.username(class="form-input", placeholder="Придумайте имя пользователя") }} | |
| {% for error in form.username.errors %} | |
| <div class="form-error">{{ error }}</div> | |
| {% endfor %} | |
| </div> | |
| <div class="form-group"> | |
| <label for="email" class="form-label"> | |
| <i class="fas fa-envelope"></i> Email | |
| </label> | |
| {{ form.email(class="form-input", placeholder="Введите ваш email") }} | |
| {% for error in form.email.errors %} | |
| <div class="form-error">{{ error }}</div> | |
| {% endfor %} | |
| </div> | |
| <div class="form-group"> | |
| <label for="password" class="form-label"> | |
| <i class="fas fa-lock"></i> Пароль | |
| </label> | |
| {{ form.password(class="form-input", placeholder="Придумайте пароль") }} | |
| {% for error in form.password.errors %} | |
| <div class="form-error">{{ error }}</div> | |
| {% endfor %} | |
| </div> | |
| <div class="form-group"> | |
| <label for="confirm_password" class="form-label"> | |
| <i class="fas fa-lock"></i> Подтверждение пароля | |
| </label> | |
| {{ form.confirm_password(class="form-input", placeholder="Повторите пароль") }} | |
| {% for error in form.confirm_password.errors %} | |
| <div class="form-error">{{ error }}</div> | |
| {% endfor %} | |
| </div> | |
| <button type="submit" class="btn-auth"> | |
| <i class="fas fa-user-plus"></i> Зарегистрироваться | |
| </button> | |
| </form> | |
| <div class="auth-footer"> | |
| Уже есть аккаунт? <a href="{{ url_for('auth_bp.login') }}" class="auth-link">Войдите</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| {% endblock %} |