diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo index 5e5222c..e408fd9 100644 Binary files a/locale/en/LC_MESSAGES/django.mo and b/locale/en/LC_MESSAGES/django.mo differ diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 691e9f5..7760d53 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-07-25 11:50+0300\n" +"POT-Creation-Date: 2026-07-25 12:01+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,9 +18,9 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: apps/ad_connector/models.py:10 apps/employees/models/base.py:186 -#: apps/employees/models/permissions.py:47 +#: apps/employees/models/permissions.py:47 templates/pages/employees.html:103 msgid "Сотрудник" -msgstr "" +msgstr "Employee" #: apps/ad_connector/models.py:13 apps/mail_connector/models.py:15 msgid "Действие" @@ -47,8 +47,9 @@ msgstr "" #: apps/it_manager/admin.py:352 apps/it_manager/admin.py:498 #: apps/locations/models/pharmacies.py:128 apps/mail_connector/models.py:24 #: apps/tasks/models.py:40 apps/visit_manager/admin.py:199 core/admin.py:32 +#: templates/pages/employees.html:107 msgid "Статус" -msgstr "" +msgstr "Status" #: apps/ad_connector/models.py:23 apps/mail_connector/models.py:25 msgid "Успех" @@ -183,9 +184,9 @@ msgid "Разрешает вход в Django admin. Только для IT-ад msgstr "" #: apps/employees/models/base.py:47 core/models/directories.py:29 -#: core/models/directories.py:121 +#: core/models/directories.py:121 templates/pages/employees.html:148 msgid "Активный" -msgstr "" +msgstr "Active" #: apps/employees/models/base.py:48 msgid "Работает ли сотрудник сейчас" @@ -244,9 +245,10 @@ msgstr "" #: apps/locations/admin.py:347 apps/locations/models/base.py:29 #: apps/locations/models/pharmacies.py:210 #: apps/locations/models/pharmacies.py:349 apps/mail_connector/models.py:12 -#: apps/utilities/models.py:17 +#: apps/utilities/models.py:17 templates/pages/employees.html:64 +#: templates/pages/employees.html:90 msgid "Аптека" -msgstr "" +msgstr "Pharmacy" #: apps/employees/models/base.py:82 apps/hiring/models.py:35 #: apps/locations/models/base.py:30 @@ -254,8 +256,9 @@ msgid "Склад" msgstr "" #: apps/employees/models/base.py:83 apps/locations/models/base.py:31 +#: templates/pages/employees.html:56 msgid "Офис" -msgstr "" +msgstr "Office" #: apps/employees/models/base.py:86 apps/locations/models/base.py:28 msgid "Тип локации" @@ -281,9 +284,9 @@ msgstr "" msgid "Заполняется для office / warehouse" msgstr "" -#: apps/employees/models/base.py:119 +#: apps/employees/models/base.py:119 templates/pages/employees.html:104 msgid "Должность" -msgstr "" +msgstr "Position" #: apps/employees/models/base.py:125 msgid "Руководитель" @@ -380,7 +383,8 @@ msgid "Обновляется автоматически при активнос msgstr "" #: apps/employees/models/base.py:187 templates/index.html:250 -#: templates/pages/dashboard.html:174 +#: templates/pages/dashboard.html:174 templates/pages/employees.html:8 +#: templates/pages/employees.html:24 msgid "Сотрудники" msgstr "Employees" @@ -828,8 +832,9 @@ msgid "Тип и регион" msgstr "" #: apps/locations/admin.py:99 apps/locations/admin.py:282 +#: templates/pages/employees.html:106 msgid "Адрес" -msgstr "" +msgstr "Address" #: apps/locations/admin.py:102 apps/locations/admin.py:139 #: apps/locations/admin.py:354 @@ -1695,7 +1700,7 @@ msgstr "IT Department" msgid "Active Directory" msgstr "Active Directory" -#: templates/index.html:494 +#: templates/index.html:494 templates/pages/employees.html:32 msgid "Поиск..." msgstr "Search..." @@ -1759,7 +1764,7 @@ msgstr "Employees online" msgid "из" msgstr "of" -#: templates/pages/dashboard.html:22 +#: templates/pages/dashboard.html:22 templates/pages/employees.html:25 msgid "активных" msgstr "active" @@ -1814,3 +1819,43 @@ msgstr "Useful links and tools" #: templates/pages/dashboard.html:163 msgid "Справочник" msgstr "Directory" + +#: templates/pages/employees.html:9 +msgid "Управление персоналом компании" +msgstr "Personnel management" + +#: templates/pages/employees.html:15 +msgid "Добавить сотрудника" +msgstr "Add employee" + +#: templates/pages/employees.html:25 +msgid "сотрудников, из них" +msgstr "employees, of them" + +#: templates/pages/employees.html:48 +msgid "Все" +msgstr "All" + +#: templates/pages/employees.html:73 +msgid "Все предприятия" +msgstr "All organizations" + +#: templates/pages/employees.html:86 +msgid "Все аптеки" +msgstr "All pharmacies" + +#: templates/pages/employees.html:105 +msgid "Отдел / Аптека" +msgstr "Department / Pharmacy" + +#: templates/pages/employees.html:108 +msgid "Дата начала" +msgstr "Start date" + +#: templates/pages/employees.html:150 +msgid "Не активный" +msgstr "Inactive" + +#: templates/pages/employees.html:157 +msgid "Список сотрудников пуст." +msgstr "Employee list is empty." diff --git a/locale/uk/LC_MESSAGES/django.mo b/locale/uk/LC_MESSAGES/django.mo index 44a435a..44defba 100644 Binary files a/locale/uk/LC_MESSAGES/django.mo and b/locale/uk/LC_MESSAGES/django.mo differ diff --git a/locale/uk/LC_MESSAGES/django.po b/locale/uk/LC_MESSAGES/django.po index 5252b4d..0801f47 100644 --- a/locale/uk/LC_MESSAGES/django.po +++ b/locale/uk/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-07-25 11:50+0300\n" +"POT-Creation-Date: 2026-07-25 12:01+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,9 +21,9 @@ msgstr "" "(n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" #: apps/ad_connector/models.py:10 apps/employees/models/base.py:186 -#: apps/employees/models/permissions.py:47 +#: apps/employees/models/permissions.py:47 templates/pages/employees.html:103 msgid "Сотрудник" -msgstr "" +msgstr "Співробітник" #: apps/ad_connector/models.py:13 apps/mail_connector/models.py:15 msgid "Действие" @@ -50,8 +50,9 @@ msgstr "" #: apps/it_manager/admin.py:352 apps/it_manager/admin.py:498 #: apps/locations/models/pharmacies.py:128 apps/mail_connector/models.py:24 #: apps/tasks/models.py:40 apps/visit_manager/admin.py:199 core/admin.py:32 +#: templates/pages/employees.html:107 msgid "Статус" -msgstr "" +msgstr "Статус" #: apps/ad_connector/models.py:23 apps/mail_connector/models.py:25 msgid "Успех" @@ -186,9 +187,9 @@ msgid "Разрешает вход в Django admin. Только для IT-ад msgstr "" #: apps/employees/models/base.py:47 core/models/directories.py:29 -#: core/models/directories.py:121 +#: core/models/directories.py:121 templates/pages/employees.html:148 msgid "Активный" -msgstr "" +msgstr "Активний" #: apps/employees/models/base.py:48 msgid "Работает ли сотрудник сейчас" @@ -247,9 +248,10 @@ msgstr "" #: apps/locations/admin.py:347 apps/locations/models/base.py:29 #: apps/locations/models/pharmacies.py:210 #: apps/locations/models/pharmacies.py:349 apps/mail_connector/models.py:12 -#: apps/utilities/models.py:17 +#: apps/utilities/models.py:17 templates/pages/employees.html:64 +#: templates/pages/employees.html:90 msgid "Аптека" -msgstr "" +msgstr "Аптека" #: apps/employees/models/base.py:82 apps/hiring/models.py:35 #: apps/locations/models/base.py:30 @@ -257,8 +259,9 @@ msgid "Склад" msgstr "" #: apps/employees/models/base.py:83 apps/locations/models/base.py:31 +#: templates/pages/employees.html:56 msgid "Офис" -msgstr "" +msgstr "Офіс" #: apps/employees/models/base.py:86 apps/locations/models/base.py:28 msgid "Тип локации" @@ -284,9 +287,9 @@ msgstr "" msgid "Заполняется для office / warehouse" msgstr "" -#: apps/employees/models/base.py:119 +#: apps/employees/models/base.py:119 templates/pages/employees.html:104 msgid "Должность" -msgstr "" +msgstr "Посада" #: apps/employees/models/base.py:125 msgid "Руководитель" @@ -383,7 +386,8 @@ msgid "Обновляется автоматически при активнос msgstr "" #: apps/employees/models/base.py:187 templates/index.html:250 -#: templates/pages/dashboard.html:174 +#: templates/pages/dashboard.html:174 templates/pages/employees.html:8 +#: templates/pages/employees.html:24 msgid "Сотрудники" msgstr "Співробітники" @@ -831,8 +835,9 @@ msgid "Тип и регион" msgstr "" #: apps/locations/admin.py:99 apps/locations/admin.py:282 +#: templates/pages/employees.html:106 msgid "Адрес" -msgstr "" +msgstr "Адреса" #: apps/locations/admin.py:102 apps/locations/admin.py:139 #: apps/locations/admin.py:354 @@ -1698,7 +1703,7 @@ msgstr "IT-відділ" msgid "Active Directory" msgstr "Active Directory" -#: templates/index.html:494 +#: templates/index.html:494 templates/pages/employees.html:32 msgid "Поиск..." msgstr "Пошук..." @@ -1762,7 +1767,7 @@ msgstr "Співробітників онлайн" msgid "из" msgstr "із" -#: templates/pages/dashboard.html:22 +#: templates/pages/dashboard.html:22 templates/pages/employees.html:25 msgid "активных" msgstr "активних" @@ -1817,3 +1822,43 @@ msgstr "Корисні посилання та інструменти" #: templates/pages/dashboard.html:163 msgid "Справочник" msgstr "Довідник" + +#: templates/pages/employees.html:9 +msgid "Управление персоналом компании" +msgstr "Управління персоналом компанії" + +#: templates/pages/employees.html:15 +msgid "Добавить сотрудника" +msgstr "Додати співробітника" + +#: templates/pages/employees.html:25 +msgid "сотрудников, из них" +msgstr "співробітників, з них" + +#: templates/pages/employees.html:48 +msgid "Все" +msgstr "Всі" + +#: templates/pages/employees.html:73 +msgid "Все предприятия" +msgstr "Всі підприємства" + +#: templates/pages/employees.html:86 +msgid "Все аптеки" +msgstr "Всі аптеки" + +#: templates/pages/employees.html:105 +msgid "Отдел / Аптека" +msgstr "Відділ / Аптека" + +#: templates/pages/employees.html:108 +msgid "Дата начала" +msgstr "Дата початку" + +#: templates/pages/employees.html:150 +msgid "Не активный" +msgstr "Не активний" + +#: templates/pages/employees.html:157 +msgid "Список сотрудников пуст." +msgstr "Список співробітників порожній." diff --git a/templates/pages/employees.html b/templates/pages/employees.html index 29a94eb..d3dd171 100644 --- a/templates/pages/employees.html +++ b/templates/pages/employees.html @@ -1,17 +1,18 @@ {% load common_tags %} +{% load i18n %}
{{ pharmacies_by_org|json_script:"emp-pharmacies-data" }}
-

Співробітники

-

Управління персоналом компанії

+

{% trans "Сотрудники" %}

+

{% trans "Управление персоналом компании" %}

@@ -20,15 +21,15 @@
-

Співробітники

-

{{ total_count }} співробітників, з них {{ active_count }} активних

+

{% trans "Сотрудники" %}

+

{{ total_count }} {% trans "сотрудников, из них" %} {{ active_count }} {% trans "активных" %}

- +
@@ -44,7 +45,7 @@ hx-push-url="/employees/" hx-indicator="#loader" style="display:inline-flex;align-items:center;padding:0.25rem 0.875rem;font-size:0.8125rem;border-radius:calc(var(--radius) - 2px);font-weight:500;text-decoration:none;cursor:pointer;transition:all 150ms; - {% if not filter_location_type %}background:var(--color-card);color:var(--color-card-foreground);box-shadow:0 1px 2px rgb(0 0 0/0.08);{% else %}color:var(--color-muted-foreground);{% endif %}">Всі + {% if not filter_location_type %}background:var(--color-card);color:var(--color-card-foreground);box-shadow:0 1px 2px rgb(0 0 0/0.08);{% else %}color:var(--color-muted-foreground);{% endif %}">{% trans "Все" %} Офіс + {% if filter_location_type == 'office' %}background:var(--color-card);color:var(--color-card-foreground);box-shadow:0 1px 2px rgb(0 0 0/0.08);{% else %}color:var(--color-muted-foreground);{% endif %}">{% trans "Офис" %} Аптека + {% if filter_location_type == 'pharmacy' %}background:var(--color-card);color:var(--color-card-foreground);box-shadow:0 1px 2px rgb(0 0 0/0.08);{% else %}color:var(--color-muted-foreground);{% endif %}">{% trans "Аптека" %}
{% if filter_location_type == 'pharmacy' %} @@ -69,7 +70,7 @@ class="input" style="font-size:0.8125rem;padding:0.3rem 0.75rem;height:auto;min-width:12rem;" onchange="empOrgChange()"> - + {% for org in organizations %} + {% for pharmacy in current_pharmacies %} + >{% trans "Аптека" %} №{{ pharmacy.pharmacy_number }} — {{ pharmacy.address }} {% endfor %} {% endif %} @@ -99,12 +100,12 @@ - - - - - - + + + + + + @@ -144,16 +145,16 @@ {% empty %} - + {% endfor %}
СпівробітникПосадаВідділ / АптекаАдресаСтатусДата початку{% trans "Сотрудник" %}{% trans "Должность" %}{% trans "Отдел / Аптека" %}{% trans "Адрес" %}{% trans "Статус" %}{% trans "Дата начала" %}
{% if employee.is_active %} - Активний + {% trans "Активный" %} {% else %} - Не активний + {% trans "Не активный" %} {% endif %} {{ employee.hire_date|date:"d.m.Y" }}
Список співробітників порожній.{% trans "Список сотрудников пуст." %}