Fix document_list.html template syntax error
- Fix incorrect nesting of {% with %} and {% if %} blocks
- Move {% include %} inside both if/else branches
- Directly pass 'docCreateModal' or empty string without intermediate variable
This commit is contained in:
parent
df8a59dde5
commit
b9d66d0026
@ -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 %}
|
||||
|
||||
{# ===== Карточка со списком ===== #}
|
||||
<div class="feed-card mb-3">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user