Corp/backend/templates/procurement/_status_badge.html
Игорь Надеин 53a8f0e6b4 feat: add procurement frontend templates and styles
Stage 6 - Frontend Implementation:
- Add procurement.css with iOS-style components
- Add dashboard, request_list, request_detail, request_form templates
- Add equipment_list, equipment_detail templates
- Add status badges and filters partials
- Add JS handlers for dashboard, requests and equipment
- Add procurement link to sidebar navigation
- Configure separate URL namespaces (procurement for API, procurement_frontend for views)

All 66 tests passing.
2025-12-09 12:03:58 +03:00

35 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{# Бейдж статуса заявки на закупку #}
{% load i18n %}
{% if status == 'draft' %}
<span class="proc-status draft">
<i class="bi-pencil me-1"></i>Черновик
</span>
{% elif status == 'pending' %}
<span class="proc-status pending">
<i class="bi-hourglass-split me-1"></i>На согласовании
</span>
{% elif status == 'approved' %}
<span class="proc-status approved">
<i class="bi-check-circle me-1"></i>Одобрено
</span>
{% elif status == 'rejected' %}
<span class="proc-status rejected">
<i class="bi-x-circle me-1"></i>Отклонено
</span>
{% elif status == 'ordered' %}
<span class="proc-status ordered">
<i class="bi-truck me-1"></i>Заказано
</span>
{% elif status == 'delivered' %}
<span class="proc-status delivered">
<i class="bi-box-seam me-1"></i>Получено
</span>
{% elif status == 'cancelled' %}
<span class="proc-status cancelled">
<i class="bi-slash-circle me-1"></i>Отменено
</span>
{% else %}
<span class="proc-status draft">{{ status }}</span>
{% endif %}