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,11 +1,21 @@
{% extends "base.html" %}
{% block title %}{{ title }} — ERP WaterSurf{% endblock %}
{% block content %}
<h2>{% if object %}Редактировать{% else %}Создать{% endif %} {{ title }}</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary">Сохранить</button>
<a href="{{ cancel_url }}" class="btn btn-secondary">Отмена</a>
</form>
<div class="ws-card">
<h2 class="ws-page-title">{% if object %}Редактировать{% else %}Создать{% endif %} {{ title }}</h2>
<form method="post">
{% 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: 1rem;">
<button type="submit" class="btn btn-ws-primary">Сохранить</button>
<a href="{{ cancel_url }}" class="btn btn-ws-secondary">Отмена</a>
</div>
</form>
</div>
{% endblock %}