Skip to content

Commit

Permalink
Add hooks for invoice admin show page
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek committed Oct 11, 2024
1 parent ffe68fc commit e9a9833
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/Resources/config/app/twig_hooks/admin/order/show.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
sylius_twig_hooks:
hooks:
'sylius_admin.order.show.content.sections#left':
invoices:
component: 'sylius_invoicing:invoice:list'
props:
order: '@=_context.resource'
priority: -50

'sylius_admin.order.show.content.sections.invoices':
table:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table.html.twig'
priority: 0

'sylius_admin.order.show.content.sections.invoices.table':
head:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/head.html.twig'
priority: 100
body:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/body.html.twig'
priority: 0

'sylius_admin.order.show.content.sections.invoices.table.head':
number:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/head/number.html.twig'
priority: 300
channel:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/head/channel.html.twig'
priority: 200
issued_at:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/head/issued_at.html.twig'
priority: 100
actions:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/head/actions.html.twig'
priority: 0

'sylius_admin.order.show.content.sections.invoices.table.body':
number:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/body/number.html.twig'
priority: 300
channel:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/body/channel.html.twig'
priority: 200
issued_at:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/body/issued_at.html.twig'
priority: 100
actions:
template: '@SyliusInvoicingPlugin/admin/order/show/content/sections/invoices/table/body/actions.html.twig'
priority: 0

'sylius_admin.order.show.content.sections.invoices.table.body.actions':
download:
template: '@SyliusInvoicingPlugin/admin/shared/action/download.html.twig'
priority: 100
resend:
template: '@SyliusInvoicingPlugin/admin/shared/action/resend.html.twig'
priority: 0

0 comments on commit e9a9833

Please sign in to comment.