From 8d209f3cbfb06c12203f2ca1c9aa03d6d28d4650 Mon Sep 17 00:00:00 2001 From: ixgadmin Date: Thu, 17 Sep 2026 14:48:14 +0000 Subject: [PATCH] Move conditional status classes inside the class attribute A class list written outside the quotes left the badge colour as a bare attribute, so the status rendered white-on-white. Also repair a stray quote on the CoA release message, where class=text-muted mb-0 left the class unapplied. --- templates/ops/capa_detail.html | 2 +- templates/ops/capa_list.html | 2 +- templates/ops/coa_review_detail.html | 4 ++-- templates/ops/coa_review_list.html | 2 +- templates/ops/eudr_detail.html | 6 +++--- templates/ops/eudr_list.html | 9 ++------- templates/ops/intake_form.html | 2 +- templates/ops/qc_verify_detail.html | 2 +- 8 files changed, 12 insertions(+), 17 deletions(-) diff --git a/templates/ops/capa_detail.html b/templates/ops/capa_detail.html index 2fd7c0f..584919a 100644 --- a/templates/ops/capa_detail.html +++ b/templates/ops/capa_detail.html @@ -36,7 +36,7 @@
- + diff --git a/templates/ops/capa_list.html b/templates/ops/capa_list.html index 5b39d91..80bbd06 100644 --- a/templates/ops/capa_list.html +++ b/templates/ops/capa_list.html @@ -34,7 +34,7 @@ - + diff --git a/templates/ops/coa_review_detail.html b/templates/ops/coa_review_detail.html index 1a6cb96..99c1de7 100644 --- a/templates/ops/coa_review_detail.html +++ b/templates/ops/coa_review_detail.html @@ -17,7 +17,7 @@
Certificate Details
Batch{{ record.batch.batch_reference }}
Status{{ record.get_status_display }}
Status{{ record.get_status_display }}
Assigned To{{ record.assigned_to|default:'-' }}
Due Date{{ record.due_date|date:'d/m/Y'|default:'-' }}
Created{{ record.created_at|date:'d/m/Y H:i' }}
{{ r.batch.batch_reference }} {{ r.issue_description|truncatewords:15 }}{{ r.get_status_display }}{{ r.get_status_display }} {{ r.assigned_to|default:'-' }} {{ r.due_date|date:'d/m/Y'|default:'-' }} {{ r.created_at|date:'d/m/Y' }}
- + @@ -56,7 +56,7 @@ {% else %} -

Commercial release approved. Buyer document and notification created.

+

Commercial release approved. Buyer document and notification created.

{% endif %} diff --git a/templates/ops/coa_review_list.html b/templates/ops/coa_review_list.html index 738b3da..1bae096 100644 --- a/templates/ops/coa_review_list.html +++ b/templates/ops/coa_review_list.html @@ -34,7 +34,7 @@ - + diff --git a/templates/ops/eudr_detail.html b/templates/ops/eudr_detail.html index 552f68e..9167cdf 100644 --- a/templates/ops/eudr_detail.html +++ b/templates/ops/eudr_detail.html @@ -45,7 +45,7 @@ - + {% empty %} @@ -62,7 +62,7 @@
Risk Assessments
{% for r in risk_assessments %}
- {{ r.get_risk_level_display }} + {{ r.get_risk_level_display }} by {{ r.assessed_by.full_name|default:'-' }} ยท {{ r.assessed_at|date:'d/m/Y H:i' }}
{{ r.basis }}
@@ -75,7 +75,7 @@
Mitigation Actions
{% for m in mitigation_actions %}
- {{ m.get_status_display }} + {{ m.get_status_display }} {{ m.action }} (owner: {{ m.owner|default:'-' }}{% if m.due_date %}, due {{ m.due_date|date:'d/m/Y' }}{% endif %})
{% empty %} diff --git a/templates/ops/eudr_list.html b/templates/ops/eudr_list.html index 4cb37bd..f646a21 100644 --- a/templates/ops/eudr_list.html +++ b/templates/ops/eudr_list.html @@ -38,13 +38,8 @@ {% for c in cases %} - - + + diff --git a/templates/ops/intake_form.html b/templates/ops/intake_form.html index c151659..6030129 100644 --- a/templates/ops/intake_form.html +++ b/templates/ops/intake_form.html @@ -11,7 +11,7 @@
-
+ {% csrf_token %} {% if form.non_field_errors %} diff --git a/templates/ops/qc_verify_detail.html b/templates/ops/qc_verify_detail.html index 462b32a..421ad6a 100644 --- a/templates/ops/qc_verify_detail.html +++ b/templates/ops/qc_verify_detail.html @@ -42,7 +42,7 @@ {% else %} -

{{ result.get_verification_status_display }}

+

{{ result.get_verification_status_display }}

{% if result.verified_by %}

Verified by {{ result.verified_by.full_name|default:result.verified_by.email }} on {{ result.approved_at|date:'d/m/Y H:i' }}

{% endif %} {% endif %}
Batch{{ coa.batch.batch_reference }}
Status{{ coa.get_status_display }}
Status{{ coa.get_status_display }}
Versionv{{ coa.version }}
Specification{{ coa.spec_version|default:'-' }}
Issuer{{ coa.issuer|default:'-' }}
{{ c.batch.batch_reference }} v{{ c.version }}{{ c.get_status_display }}{{ c.get_status_display }} {{ c.spec_version|default:'-' }} {{ c.quality_approved_by.full_name|default:'-' }} {{ c.issue_date|date:'d/m/Y'|default:'-' }}{{ link.harvest_intake.intake_date|date:'d/m/Y'|default:'-' }} {% if link.weight_allocated_kg %}{{ link.weight_allocated_kg }}{% elif link.harvest_intake %}{{ link.harvest_intake.weight_kg }}{% else %}-{% endif %} {{ link.harvest_intake.origin_zone.zone_code|default:'-' }}{% if link.harvest_intake.origin_zone %}{{ link.harvest_intake.origin_zone.get_verification_status_display }}{% else %}-{% endif %}{% if link.harvest_intake.origin_zone %}{{ link.harvest_intake.origin_zone.get_verification_status_display }}{% else %}-{% endif %} {{ link.harvest_intake.collector_group.name|default:'-' }}
{{ c.batch.batch_reference }}{{ c.get_status_display }}{{ c.get_risk_level_display }}{{ c.get_status_display }}{{ c.get_risk_level_display }} {{ c.approved_at|date:'d/m/Y H:i'|default:'-' }} {{ c.updated_at|date:'d/m/Y' }} Review