diff --git a/myproject/accounts/admin.py b/myproject/accounts/admin.py index 6dc3d5d..a4639e8 100644 --- a/myproject/accounts/admin.py +++ b/myproject/accounts/admin.py @@ -36,3 +36,7 @@ class CustomUserAdmin(UserAdmin): admin.site.register(CustomUser, CustomUserAdmin) +admin.site.site_header = "Админ-панель" +admin.site.site_title = "Админ-панель" +admin.site.index_title = "Добро пожаловать" + diff --git a/myproject/inventory/templates/inventory/sale/sale_detail.html b/myproject/inventory/templates/inventory/sale/sale_detail.html index b838535..88120ab 100644 --- a/myproject/inventory/templates/inventory/sale/sale_detail.html +++ b/myproject/inventory/templates/inventory/sale/sale_detail.html @@ -125,12 +125,6 @@ {% endif %}
- - Редактировать - - - Удалить - Вернуться к списку diff --git a/myproject/inventory/templates/inventory/sale/sale_list.html b/myproject/inventory/templates/inventory/sale/sale_list.html index d6e3076..b0e0a28 100644 --- a/myproject/inventory/templates/inventory/sale/sale_list.html +++ b/myproject/inventory/templates/inventory/sale/sale_list.html @@ -8,9 +8,6 @@

Продажи товара (FIFO)

- - Новая продажа -
@@ -55,12 +52,6 @@ - - - - - - {% endfor %} @@ -107,7 +98,6 @@ {% else %} {% endif %}
diff --git a/myproject/static/admin/css/custom_admin.css b/myproject/static/admin/css/custom_admin.css new file mode 100644 index 0000000..e2e3d5d --- /dev/null +++ b/myproject/static/admin/css/custom_admin.css @@ -0,0 +1,42 @@ +/* custom_admin.css */ + +/* Небольшая нейтральная стилизация хедера */ +#header { + background: #1f2937; /* тёмно-серый (не django-green) */ +} +#header, #header a, #header .brand-name { + color: #ffffff; +} + +/* Лаконичный «логотип» — маленькая точка/маркер */ +.brand-logo { + display: inline-block; + width: 10px; + height: 10px; + margin-right: 8px; + border-radius: 50%; + background: #10b981; /* неброский зелёный маркер */ + vertical-align: middle; +} +.brand-name { + font-weight: 600; + letter-spacing: 0.2px; +} + +/* Лёгкое улучшение внешнего вида контейнера логина */ +body.login #container { + border-radius: 10px; + box-shadow: 0 8px 24px rgba(0,0,0,0.12); +} + +/* Кнопки — чуть более современные оттенки */ +.module .submit-row input, +.submit-row input[type="submit"] { + background: #2563eb; /* неброский синий */ + border-color: #2563eb; +} +.module .submit-row input:hover, +.submit-row input[type="submit"]:hover { + background: #1e40af; + border-color: #1e40af; +} diff --git a/myproject/templates/admin/base_site.html b/myproject/templates/admin/base_site.html new file mode 100644 index 0000000..d3340fa --- /dev/null +++ b/myproject/templates/admin/base_site.html @@ -0,0 +1,15 @@ +{% extends "admin/base.html" %} +{% load static %} + +{% block title %}Админ-панель{% endblock %} + +{% block branding %} +
+ + Админ-панель +
+{% endblock %} + +{% block extrastyle %} + +{% endblock %} diff --git a/myproject/tenants/templates/tenants/base.html b/myproject/tenants/templates/tenants/base.html index bf2f81c..ad7a9d9 100644 --- a/myproject/tenants/templates/tenants/base.html +++ b/myproject/tenants/templates/tenants/base.html @@ -10,36 +10,96 @@ @@ -47,20 +107,16 @@
-
-
- {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} - {% block content %}{% endblock %} -
-
+ {% block content %}{% endblock %}
diff --git a/myproject/tenants/templates/tenants/registration_form.html b/myproject/tenants/templates/tenants/registration_form.html index 4aabae3..6e65c83 100644 --- a/myproject/tenants/templates/tenants/registration_form.html +++ b/myproject/tenants/templates/tenants/registration_form.html @@ -1,14 +1,14 @@ {% extends "tenants/base.html" %} -{% block title %}Регистрация нового магазина{% endblock %} +{% block title %}Регистрация нового пользователя{% endblock %} {% block content %}
-

Регистрация нового магазина

-

Заполните форму для создания вашего интернет-магазина

+

Регистрация магазина

+

Заполните форму для создания заявки

-
+
{% csrf_token %} @@ -37,7 +37,7 @@
{{ form.schema_name }} - .inventory.by + .flowers
{% if form.schema_name.errors %}
@@ -96,26 +96,19 @@
-
-
+
- После отправки заявки ваш магазин будет проверен администратором.
- Уведомление придет на указанный email в течение 24 часов. + Заявка будет проверена администратором в течение 24 часов
- - {% endblock %} {% block extra_js %}