-
-
Notifications
You must be signed in to change notification settings - Fork 9
[Admin] Subscription twig hooks #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Admin] Subscription twig hooks #221
Conversation
templates/admin/mollie_subscription/show/sections/general/configuration.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/customer.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/id.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/order_item.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/payment_state.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/processing_state.html.twig
Outdated
Show resolved
Hide resolved
templates/admin/mollie_subscription/show/sections/general/state.html.twig
Outdated
Show resolved
Hide resolved
{% set mollie_subscription = hookable_metadata.context.resource %} | ||
{% set orderItem = mollie_subscription.orderItem %} | ||
|
||
{% if orderItem is not null %} | ||
<div class="row mb-2 border-bottom pb-2"> | ||
<div class="col-md-4 fw-bold">{{ 'sylius.ui.item'|trans }} {{ 'sylius.ui.id'|trans }}</div> | ||
<div class="col-md-8">{{ orderItem.id }}</div> | ||
</div> | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed
{% if customer is not null %} | ||
<div class="row mb-2 border-bottom pb-2"> | ||
<div class="col-md-4 fw-bold">{{ 'sylius.ui.email'|trans }} {{ 'sylius.ui.email'|trans }}</div> | ||
<div class="col-md-8">{{ customer.email }}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it hyperlink to customer page
@@ -0,0 +1,5 @@ | |||
<div class="page-body"> | |||
<div class="container-xl"> | |||
{% hook 'sections' with { user: hookable_metadata.context.resource|default(null) } %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% hook 'sections' with { user: hookable_metadata.context.resource|default(null) } %} | |
{% hook 'sections' %} |
Uh oh!
There was an error while loading. Please reload this page.