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=80=D0=BC=D0=B5=20=D1=80=D0=B5=D0=B4=D0=B0?= =?UTF-8?q?=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/employee_form_contact.html | 18 +++++- .../templates/employees/employee_detail.html | 64 ++++++++++++++++++- 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/backend/templates/employees/components/employee_form_contact.html b/backend/templates/employees/components/employee_form_contact.html index fb27c979..e8aeb6b5 100644 --- a/backend/templates/employees/components/employee_form_contact.html +++ b/backend/templates/employees/components/employee_form_contact.html @@ -26,24 +26,36 @@
- + +
Для уведомлений (найдите ID через @userinfobot)
- + +
Номер телефона в формате E.164
- + +
Ваш WeChat идентификатор
diff --git a/backend/templates/employees/employee_detail.html b/backend/templates/employees/employee_detail.html index 9a610e62..b57197b5 100644 --- a/backend/templates/employees/employee_detail.html +++ b/backend/templates/employees/employee_detail.html @@ -72,6 +72,40 @@ {% endif %} + {# Быстрые действия с мессенджерами #} + {% if emp.telegram or emp.whatsapp or emp.wechat %} +
+ {% if emp.telegram %} + + + Telegram + + {% endif %} + + {% if emp.whatsapp %} + + + WhatsApp + + {% endif %} + + {% if emp.wechat %} + + {% endif %} +
+ {% endif %} +
@@ -100,9 +134,33 @@ {{ emp.phone_number }}
{% endif %} - {% if emp.telegram %}
{{ emp.telegram }}
{% endif %} - {% if emp.whatsapp %}
{{ emp.whatsapp }}
{% endif %} - {% if emp.wechat %}
{{ emp.wechat }}
{% endif %} + + {# Мессенджеры с цветными иконками и ссылками #} + {% if emp.telegram %} + + {% endif %} + + {% if emp.whatsapp %} + + {% endif %} + + {% if emp.wechat %} +
+ + WeChat: {{ emp.wechat }} +
+ {% endif %} + {% if not emp.email and not emp.phone_number and not emp.telegram and not emp.whatsapp and not emp.wechat %}
Контакты не указаны
{% endif %}