- 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
25 lines
1016 B
HTML
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" %}
|