Corp/backend/templates/employees/_employee_edit.html
Игорь Надеин 2cc14bc208 refactor: Extract post form textarea autogrow styles
- Created: static/css/components/post-form.css (textarea.autogrow with min/max height, overflow control)
- Modified: templates/feed/post_form.html (replaced inline styles with CSS import)
- Description: Extracted 13-line style block for autogrow textarea behavior
- Result: Post form now uses reusable component CSS
2025-10-28 10:10:07 +03:00

25 lines
1016 B
HTML

{# templates/employees/_employee_edit.html #}
{# Форма редактирования сотрудника - рефакторированная версия #}
{% load static %}
<link rel="stylesheet" href="{% static 'css/components/modal-overrides.css' %}">
<form id="apiEditForm" class="row g-3" data-endpoint="{{ endpoint }}"
action="{% if is_me %}{% url 'employees:employee_set_position_me' %}{% else %}{% url 'employees:employee_set_position' emp.id %}{% endif %}">
{% csrf_token %}
{# === ЛИЧНЫЕ ДАННЫЕ === #}
{% include "employees/components/employee_form_personal.html" %}
{# === КОНТАКТЫ === #}
{% include "employees/components/employee_form_contact.html" %}
{# === ДОЛЖНОСТЬ === #}
{% include "employees/components/employee_form_position.html" %}
{# === КНОПКИ === #}
{% include "employees/components/employee_form_actions.html" %}
</form>
{# === JAVASCRIPT ЛОГИКА === #}
{% include "employees/components/employee_form_scripts.html" %}