@@ -712,6 +712,43 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
+
+
{% endblock %}
diff --git a/backend/templates/employees/employees_list.html b/backend/templates/employees/employees_list.html
index 1e84991d..5bc7ad13 100644
--- a/backend/templates/employees/employees_list.html
+++ b/backend/templates/employees/employees_list.html
@@ -31,18 +31,88 @@
}
.ios-search-input:not(:placeholder-shown) ~ .ios-search-clear{ display:block; }
.feed-header { gap:.6rem; flex-wrap:wrap; }
-
- .alpha-header{
- position:sticky; top:calc(var(--navbar-h,0px) + 6px);
- z-index:1; background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
- padding:.25rem .5rem; margin:.75rem 0 .25rem;
- font-weight:800; letter-spacing:.02em; border-radius:10px; width:max-content;
- }
- .alpha-dot{ display:inline-block; width:.4rem; height:.4rem; border-radius:50%; background:var(--bs-primary); margin-right:.4rem; }
-
- .feed-card.emp-row .feed-ava{ width:56px; height:56px; }
- .badge-dept{ background:var(--bs-secondary-bg); color:var(--bs-body-color); border:1px solid var(--bs-border-color); }
+
+
+
+
{% endblock %}
{% block content %}
@@ -65,7 +135,7 @@
+ placeholder="Поиск по ФИО, должности или отделу" autocomplete="off">
@@ -75,19 +145,9 @@
{% if employees %}
{% for emp in employees %}
- {# буква-секция по первой букве фамилии (или имени, если нет фамилии) #}
- {% with lname=emp.last_name|default_if_none:"" fname=emp.first_name|default_if_none:"" %}
- {% with base=lname|default:fname %}
- {% with letter=base|default:"?"|slice:":1"|upper %}
- {% ifchanged letter %}
-
+
{{ letter }}
- {% endifchanged %}
- {% endwith %}
- {% endwith %}
- {% endwith %}
-
-
{% if emp.avatar %}
@@ -100,8 +160,7 @@
-
+
{% endfor %}
{% else %}
@@ -153,7 +220,6 @@
{% endif %}
- {# Пагинация, если фронт-вьюха передала номера страниц #}
{% if next_page or prev_page %}