{% extends "base.html" %} {% load static %} {% block title %}Заявки на закупку{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {# ===== ШАПКА СТРАНИЦЫ ===== #} {% include "includes/components/page_header.html" with icon="bi-list-ul" title=page_title|default:"Заявки на закупку" search_id="procSearch" search_placeholder="Поиск по названию..." has_filters=True filters_target="procFilters" filters_template="procurement/_filters.html" create_as_card=True create_modal="procCreateModal" create_text="Создать заявку" %} {# ===== Tabs для переключения области ===== #} {% if can_view_all %}
{% endif %} {# ===== СПИСОК ЗАЯВОК ===== #}
Заявка
Отдел
Сумма
Статус
Дата
{% if requests %} {% for request in requests %}
{% if request.urgency == 'critical' %} {% elif request.urgency == 'high' %} {% elif request.urgency == 'medium' %} {% else %} {% endif %}
{{ request.description|truncatechars:60 }} {% if request.items.count > 0 %} ({{ request.items.count }} поз.) {% endif %}
{{ request.department.name }}
{{ request.estimated_cost|floatformat:0 }} ₽
{% include "procurement/_status_badge.html" with status=request.status %}
{{ request.created_at|date:"d.m.Y" }}
{% endfor %} {% else %}

Заявок не найдено

Создать заявку
{% endif %}
{# Пагинация #} {% if page_obj %} {% endif %}
{# ===== МОДАЛКА СОЗДАНИЯ ===== #} {% endblock %} {% block extra_js %} {% endblock %}