From f01844b8e6e07a4fe47cc9a5f3de18f02bae67c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20S=C4=99k?= Date: Tue, 14 Jan 2025 10:38:18 +0100 Subject: [PATCH] Fix flags display --- .../show/content/sections/buyer/country_code.html.twig | 6 +++++- .../show/content/sections/seller/country_code.html.twig | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/admin/invoice/show/content/sections/buyer/country_code.html.twig b/templates/admin/invoice/show/content/sections/buyer/country_code.html.twig index b5199bea..fe317f85 100644 --- a/templates/admin/invoice/show/content/sections/buyer/country_code.html.twig +++ b/templates/admin/invoice/show/content/sections/buyer/country_code.html.twig @@ -1 +1,5 @@ - +{% set billing_data = hookable_metadata.context.resource.billingData %} + +{% if billing_data.countryCode %} + {{ ux_icon('flagpack:' ~ billing_data.countryCode|lower, {'class': 'icon me-1'}) }} +{% endif %} diff --git a/templates/admin/invoice/show/content/sections/seller/country_code.html.twig b/templates/admin/invoice/show/content/sections/seller/country_code.html.twig index f5f15bb2..f4a1e438 100644 --- a/templates/admin/invoice/show/content/sections/seller/country_code.html.twig +++ b/templates/admin/invoice/show/content/sections/seller/country_code.html.twig @@ -1,5 +1,5 @@ {% set shop_billing_data = hookable_metadata.context.resource.shopBillingData %} {% if shop_billing_data.countryCode %} - + {{ ux_icon('flagpack:' ~ shop_billing_data.countryCode|lower, {'class': 'icon me-1'}) }} {% endif %}