Feature: тёмная тема, минималистичный UI, улучшения UX

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-25 15:22:18 +00:00
parent a181413dda
commit a684bede12
18 changed files with 860 additions and 305 deletions

View File

@@ -1,14 +1,20 @@
{% extends "base.html" %}
{% block title %}Вход — ERP WaterSurf{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-md-4">
<h2>Вход</h2>
<form method="post" action="{% url 'users:login' %}">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary">Войти</button>
</form>
</div>
<div class="ws-card ws-login-card">
<h1 class="ws-login-title">Вход</h1>
<form method="post" action="{% url 'users:login' %}" class="ws-form-login">
{% csrf_token %}
{% for field in form %}
<div class="ws-form-group">
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
{{ field }}
{% if field.errors %}<small class="ws-text-danger">{{ field.errors.0 }}</small>{% endif %}
</div>
{% endfor %}
<div class="ws-btn-group" style="margin-top: 1.5rem;">
<button type="submit" class="btn btn-ws-primary">Войти</button>
</div>
</form>
</div>
{% endblock %}