diff --git a/backend/templates/documents/document_list.html b/backend/templates/documents/document_list.html index cd1fdb4f..65045649 100644 --- a/backend/templates/documents/document_list.html +++ b/backend/templates/documents/document_list.html @@ -16,12 +16,10 @@ {# ===== НОВАЯ ШАПКА С КОМПОНЕНТОМ ===== #} {% if perms.documents.add_document %} - {% with create_modal_id='docCreateModal' %} + {% include "includes/components/page_header.html" with icon="bi-file-earmark-text" title="Документы" no_search=True scope_urls=scope_urls scope=scope create_modal="docCreateModal" create_text="Создать документ" create_icon="bi-plus-lg" %} {% else %} - {% with create_modal_id='' %} + {% include "includes/components/page_header.html" with icon="bi-file-earmark-text" title="Документы" no_search=True scope_urls=scope_urls scope=scope create_modal='' create_text="Создать документ" create_icon="bi-plus-lg" %} {% endif %} - {% include "includes/components/page_header.html" with icon="bi-file-earmark-text" title="Документы" no_search=True scope_urls=scope_urls scope=scope create_modal=create_modal_id create_text="Создать документ" create_icon="bi-plus-lg" %} - {% endwith %} {# ===== Карточка со списком ===== #}