From db05d6052a8e28e014707963d6ab8d0aae0d6efd Mon Sep 17 00:00:00 2001 From: ixgadmin Date: Thu, 17 Sep 2026 13:57:53 +0000 Subject: [PATCH] Quote the ops templates' HTML attributes so the classes apply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An unquoted attribute value ends at the first whitespace, so ``class=badge bg-danger`` is read by every browser as ``class="badge"`` plus two meaningless attributes. Bootstrap was loading perfectly well; the markup simply never asked for the styles. Across the ops portal that meant buttons rendered as plain links, status badges were invisible (white text on a white background: a failed result showed as nothing at all), the active sidebar item never highlighted, and the flex utility classes did nothing. The buyer portal templates quote their attributes, which is why only the ops portal looked unstyled. 346 attributes across 20 templates, rewritten mechanically with a conservative transform that handles the three shapes in use — a Django tag as the value, a multi-token class list, and a trailing simple conditional (the active-nav highlight) — and leaves anything it does not recognise exactly as it was. --- templates/ops/base_ops.html | 56 ++++++------- templates/ops/batch_detail.html | 86 +++++++++---------- templates/ops/batch_list.html | 58 ++++++------- templates/ops/capa_detail.html | 34 ++++---- templates/ops/capa_list.html | 40 ++++----- templates/ops/coa_review_detail.html | 66 +++++++-------- templates/ops/coa_review_list.html | 40 ++++----- templates/ops/dashboard.html | 96 ++++++++++----------- templates/ops/document_list.html | 42 +++++----- templates/ops/esg_list.html | 22 ++--- templates/ops/eudr_detail.html | 120 +++++++++++++-------------- templates/ops/eudr_list.html | 46 +++++----- templates/ops/intake_form.html | 34 ++++---- templates/ops/intake_list.html | 50 +++++------ templates/ops/qc_detail.html | 30 +++---- templates/ops/qc_list.html | 42 +++++----- templates/ops/qc_verify_detail.html | 56 ++++++------- templates/ops/qc_verify_list.html | 42 +++++----- templates/ops/shipment_detail.html | 32 +++---- templates/ops/shipment_list.html | 40 ++++----- 20 files changed, 516 insertions(+), 516 deletions(-) diff --git a/templates/ops/base_ops.html b/templates/ops/base_ops.html index 0944125..0c4a926 100644 --- a/templates/ops/base_ops.html +++ b/templates/ops/base_ops.html @@ -1,11 +1,11 @@ - + - - + + {% block title %}IXG Operations{% endblock %} - - + +