diff --git a/backend/static/css/components/request-list.css b/backend/static/css/components/request-list.css index 6dd66de9..6d80a8e1 100644 --- a/backend/static/css/components/request-list.css +++ b/backend/static/css/components/request-list.css @@ -12,6 +12,47 @@ padding: 0; } +/* Заголовок таблицы */ +#reqList .req-table-header { + position: sticky; + top: 0; + z-index: 10; + background: var(--bs-body-bg); + border-bottom: 2px solid var(--bs-border-color); +} + +#reqList .req-table-header .req-table-row { + padding: 0.625rem 1rem; +} + +#reqList .req-table-header h6 { + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; + color: var(--bs-secondary-color); + margin: 0; +} + +#reqList .req-table-header .req-cell { + align-items: center; +} + +#reqList .req-table-header .req-cell-title h6, +#reqList .req-table-header .req-cell-author h6 { + text-align: left; +} + +#reqList .req-table-header .req-cell-dates h6, +#reqList .req-table-header .req-cell-status h6, +#reqList .req-table-header .req-cell-created h6 { + text-align: center; +} + +#reqList .req-table-header .req-cell-actions h6 { + text-align: center; +} + /* Строка заявления */ #reqList .req-row { padding: 0; @@ -144,6 +185,7 @@ /* Адаптивность для планшетов */ @media (max-width: 992px) { + #reqList .req-table-header .req-table-row, #reqList .req-table-row { grid-template-columns: 42px /* Иконка */ @@ -155,6 +197,7 @@ } /* Прячем отдельную колонку действий */ + #reqList .req-table-header .req-cell-actions, #reqList .req-cell-actions { display: none; } @@ -168,6 +211,11 @@ /* Адаптивность для мобильных */ @media (max-width: 768px) { + /* Скрываем заголовок таблицы на мобильных */ + #reqList .req-table-header { + display: none; + } + #reqList .req-table-row { grid-template-columns: 36px 1fr; gap: 0.5rem; diff --git a/backend/templates/requests_app/request_list_full.html b/backend/templates/requests_app/request_list_full.html index 188e5338..f860592d 100644 --- a/backend/templates/requests_app/request_list_full.html +++ b/backend/templates/requests_app/request_list_full.html @@ -23,6 +23,31 @@ {# ===== Список ===== #} {# DEBUG: Фильтры - type: {{ filters.type }}, status: {{ filters.status }}, count: {{ requests|length }} #}
+ +
+
+
+
+
Заявление
+
+
+
Автор
+
+
+
Период
+
+
+
Статус
+
+
+
Создано
+
+
+
Действия
+
+
+
+ {% if requests %} {% for obj in requests %}
@@ -80,10 +105,18 @@
{% if obj.date_from or obj.date_to %} - {{ obj.date_from|date:"d.m.Y"|default:"—" }}
- {{ obj.date_to|date:"d.m.Y"|default:"—" }} + {% if obj.date_from %} + {{ obj.date_from|slice:":10" }}
+ {% else %} + —
+ {% endif %} + {% if obj.date_to %} + {{ obj.date_to|slice:":10" }} + {% else %} + — + {% endif %} {% else %} - — + — {% endif %}
@@ -113,8 +146,12 @@
- {{ obj.created_at|date:"d.m.Y" }}
- {{ obj.created_at|date:"H:i" }} + {% if obj.created_at %} + {{ obj.created_at|slice:":10" }}
+ {{ obj.created_at|slice:"11:16" }} + {% else %} + — + {% endif %}