From d33acfecfa338f7cf2211e4eb2c5c067300bcc8e Mon Sep 17 00:00:00 2001 From: Kamil Grygierzec Date: Thu, 17 Oct 2024 13:06:38 +0200 Subject: [PATCH] Fix the twig hooks on order shop show to display the invoices correctly --- .../app/twig_hooks/shop/order/summary.yaml | 38 +++++++++---------- .../summary/invoices/card.html.twig | 0 .../summary/invoices/card/body.html.twig | 0 .../invoices/card/body/table.html.twig | 0 .../invoices/card/body/table/body.html.twig | 0 .../card/body/table/body/download.html.twig | 0 .../card/body/table/body/issued_at.html.twig | 0 .../card/body/table/body/number.html.twig | 0 .../invoices/card/body/table/head.html.twig | 0 .../card/body/table/head/actions.html.twig | 0 .../card/body/table/head/issued_at.html.twig | 0 .../card/body/table/head/number.html.twig | 0 .../summary/invoices/card/head.html.twig | 0 13 files changed, 19 insertions(+), 19 deletions(-) rename src/templates/shop/order/show/{ => content}/summary/invoices/card.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/body.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/body/download.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/body/issued_at.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/body/number.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/head.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/head/actions.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/head/issued_at.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/body/table/head/number.html.twig (100%) rename src/templates/shop/order/show/{ => content}/summary/invoices/card/head.html.twig (100%) diff --git a/src/Resources/config/app/twig_hooks/shop/order/summary.yaml b/src/Resources/config/app/twig_hooks/shop/order/summary.yaml index 29bced92..831fa607 100644 --- a/src/Resources/config/app/twig_hooks/shop/order/summary.yaml +++ b/src/Resources/config/app/twig_hooks/shop/order/summary.yaml @@ -1,57 +1,57 @@ sylius_twig_hooks: hooks: - 'sylius_shop.account.order.show.summary': + 'sylius_shop.account.order.show.content.summary': invoices: component: 'sylius_invoicing:invoice:list' props: order: '@=_context.order' priority: 350 - 'sylius_shop.account.order.show.summary.invoices': + 'sylius_shop.account.order.show.content.summary.invoices': card: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card.html.twig' priority: 0 - 'sylius_shop.account.order.show.summary.invoices.card': + 'sylius_shop.account.order.show.content.summary.invoices.card': head: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/head.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/head.html.twig' priority: 100 body: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body.html.twig' priority: 0 - 'sylius_shop.account.order.show.summary.invoices.card.body': + 'sylius_shop.account.order.show.content.summary.invoices.card.body': table: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table.html.twig' priority: 0 - 'sylius_shop.account.order.show.summary.invoices.card.body.table': + 'sylius_shop.account.order.show.content.summary.invoices.card.body.table': head: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head.html.twig' priority: 100 body: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body.html.twig' priority: 0 - 'sylius_shop.account.order.show.summary.invoices.card.body.table.head': + 'sylius_shop.account.order.show.content.summary.invoices.card.body.table.head': number: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/number.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/number.html.twig' priority: 200 issued_at: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/issued_at.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/issued_at.html.twig' priority: 100 actions: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/actions.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/actions.html.twig' priority: 0 - 'sylius_shop.account.order.show.summary.invoices.card.body.table.body': + 'sylius_shop.account.order.show.content.summary.invoices.card.body.table.body': number: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/number.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/number.html.twig' priority: 200 issued_at: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/issued_at.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/issued_at.html.twig' priority: 100 download: - template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/download.html.twig' + template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/download.html.twig' enabled: '%sylius_invoicing.pdf_generator.enabled%' priority: 0 diff --git a/src/templates/shop/order/show/summary/invoices/card.html.twig b/src/templates/shop/order/show/content/summary/invoices/card.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/body.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/body.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/body.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/body.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/body/download.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/body/download.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/body/download.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/body/download.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/body/issued_at.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/body/issued_at.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/body/issued_at.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/body/issued_at.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/body/number.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/body/number.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/body/number.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/body/number.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/head.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/head.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/head.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/head.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/head/actions.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/head/actions.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/head/actions.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/head/actions.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/head/issued_at.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/head/issued_at.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/head/issued_at.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/head/issued_at.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/body/table/head/number.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/body/table/head/number.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/body/table/head/number.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/body/table/head/number.html.twig diff --git a/src/templates/shop/order/show/summary/invoices/card/head.html.twig b/src/templates/shop/order/show/content/summary/invoices/card/head.html.twig similarity index 100% rename from src/templates/shop/order/show/summary/invoices/card/head.html.twig rename to src/templates/shop/order/show/content/summary/invoices/card/head.html.twig