Corp/backend/templates/employees/_employee_edit.html

30 lines
953 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"
method="post"
enctype="multipart/form-data"
data-endpoint="{{ endpoint }}"
action="{{ endpoint }}">
{% 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" %}