-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Admin][Order][Show] Minor improvements
- Loading branch information
Showing
17 changed files
with
33 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...inBundle/templates/order/show/content/sections/items/body/discounted_unit_price.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
{% set item = hookable_metadata.context.item %} | ||
|
||
<td class="text-end" {{ sylius_test_html_attribute('discounted-unit-price') }}> | ||
{{ _money.format(item.fullDiscountedUnitPrice, order.currencyCode) }} | ||
{{ money.format(item.fullDiscountedUnitPrice, order.currencyCode) }} | ||
</td> |
4 changes: 2 additions & 2 deletions
4
...dle/templates/order/show/content/sections/items/body/distributed_order_discount.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order_promotion_adjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::ORDER_PROMOTION_ADJUSTMENT') %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
{% set item = hookable_metadata.context.item %} | ||
|
||
<td class="text-end" {{ sylius_test_html_attribute('distributed-order-discount') }}> | ||
<span class="fst-italic">~ {{ _money.format(item.units.first.adjustmentsTotal(order_promotion_adjustment), order.currencyCode) }}</span> | ||
<span class="fst-italic">~ {{ money.format(item.units.first.adjustmentsTotal(order_promotion_adjustment), order.currencyCode) }}</span> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ylius/Bundle/AdminBundle/templates/order/show/content/sections/items/body/total.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
{% set item = hookable_metadata.context.item %} | ||
|
||
<td class="text-end" {{ sylius_test_html_attribute('total') }}> | ||
{{ _money.format(item.total, order.currencyCode) }} | ||
{{ money.format(item.total, order.currencyCode) }} | ||
</td> |
4 changes: 2 additions & 2 deletions
4
...ndle/AdminBundle/templates/order/show/content/sections/items/body/unit_discount.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set unit_promotion_adjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::ORDER_UNIT_PROMOTION_ADJUSTMENT') %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
{% set item = hookable_metadata.context.item %} | ||
|
||
<td class="text-end" {{ sylius_test_html_attribute('unit-discount') }}> | ||
{{ _money.format(item.units.first.adjustmentsTotal(unit_promotion_adjustment), order.currencyCode) }} | ||
{{ money.format(item.units.first.adjustmentsTotal(unit_promotion_adjustment), order.currencyCode) }} | ||
</td> |
4 changes: 2 additions & 2 deletions
4
.../Bundle/AdminBundle/templates/order/show/content/sections/items/body/unit_price.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
{% set item = hookable_metadata.context.item %} | ||
|
||
<td class="text-end" {{ sylius_test_html_attribute('unit-price') }}> | ||
{{ _money.format(item.unitPrice, order.currencyCode) }} | ||
{{ money.format(item.unitPrice, order.currencyCode) }} | ||
</td> |
4 changes: 0 additions & 4 deletions
4
src/Sylius/Bundle/AdminBundle/templates/order/show/content/sections/items/foot.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/Bundle/AdminBundle/templates/order/show/content/sections/items/foot/tax_total.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
|
||
<td class="text-end h3 mb-0">{{ _money.format(order.taxTotal, order.currencyCode) }}</td> | ||
<td class="text-end h3 mb-0">{{ money.format(order.taxTotal, order.currencyCode) }}</td> |
4 changes: 2 additions & 2 deletions
4
...ylius/Bundle/AdminBundle/templates/order/show/content/sections/items/foot/total.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
|
||
<td class="text-end h3 mb-0" {{ sylius_test_html_attribute('items-total') }}>{{ _money.format(order.itemsTotal, order.currencyCode) }}</td> | ||
<td class="text-end h3 mb-0" {{ sylius_test_html_attribute('items-total') }}>{{ money.format(order.itemsTotal, order.currencyCode) }}</td> |
4 changes: 0 additions & 4 deletions
4
src/Sylius/Bundle/AdminBundle/templates/order/show/content/sections/payments.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
|
||
<div class="card mb-3" {{ sylius_test_html_attribute('payments') }}> | ||
{% hook 'payments' %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...us/Bundle/AdminBundle/templates/order/show/content/sections/summary/items_total.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
|
||
<tr> | ||
<td><strong>{{ 'sylius.ui.items_total'|trans }}:</strong></td> | ||
<td class="text-end" {{ sylius_test_html_attribute('total') }}>{{ _money.format(order.itemsTotal, order.currencyCode) }}</td> | ||
<td class="text-end" {{ sylius_test_html_attribute('total') }}>{{ money.format(order.itemsTotal, order.currencyCode) }}</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...lius/Bundle/AdminBundle/templates/order/show/content/sections/summary/tax_total.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as _money %} | ||
{% import '@SyliusAdmin/shared/helper/money.html.twig' as money %} | ||
|
||
{% set order = hookable_metadata.context.resource %} | ||
|
||
<tr> | ||
<td><strong>{{ 'sylius.ui.tax_total'|trans }}:</strong></td> | ||
<td class="text-end" {{ sylius_test_html_attribute('tax-total') }}>{{ _money.format(order.taxTotal, order.currencyCode) }}</td> | ||
<td class="text-end" {{ sylius_test_html_attribute('tax-total') }}>{{ money.format(order.taxTotal, order.currencyCode) }}</td> | ||
</tr> |