diff --git a/backend/procurement/views_frontend.py b/backend/procurement/views_frontend.py index 48948506..772819ed 100644 --- a/backend/procurement/views_frontend.py +++ b/backend/procurement/views_frontend.py @@ -64,7 +64,6 @@ def dashboard(request): 'budget': budget, 'recent_requests': recent_requests, 'can_approve': can_approve, - 'create_url': 'procurement:request_create', } return render(request, 'procurement/dashboard.html', context) diff --git a/backend/templates/procurement/dashboard.html b/backend/templates/procurement/dashboard.html index ccb5823f..4bd80932 100644 --- a/backend/templates/procurement/dashboard.html +++ b/backend/templates/procurement/dashboard.html @@ -11,7 +11,7 @@ {% block content %} {# ===== ШАПКА СТРАНИЦЫ ===== #} - {% include "includes/components/page_header.html" with icon="bi-cart3" title="Закупки" no_search=True create_url=create_url create_text="Новая заявка" %} + {% include "includes/components/page_header.html" with icon="bi-cart3" title="Закупки" no_search=True create_as_card=True create_modal="procCreateModal" create_text="Новая заявка" %} {# ===== СТАТИСТИКА ===== #}
@@ -218,8 +218,127 @@ {% endblock %} +{# ===== МОДАЛКА СОЗДАНИЯ ===== #} + + {% block extra_js %}