-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style #309 Order refund admin show rebuild (Tomanhez)
This PR was merged into the 1.0-dev branch. Discussion ---------- New: <img width="1164" alt="Screenshot 2021-06-10 at 15 05 05" src="https://user-images.githubusercontent.com/39232096/121530130-64cd0a00-c9fd-11eb-9ff5-bae81823376c.png"> Commits ------- 14857c3 Add new and remove redundant templates 7c50eb6 Add new method in OrderRefundsExtension 2467d2b Update new service confirutations
- Loading branch information
Showing
13 changed files
with
95 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
33 changes: 0 additions & 33 deletions
33
src/Resources/views/Order/Admin/RefundPayment/list.html.twig
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% import '@SyliusAdmin/Common/Macro/money.html.twig' as money %} | ||
{% set refund_payments = get_all_refund_payments_by_order(order) %} | ||
{% if refund_payments|length > 0 %} | ||
{% include '@SyliusAdmin/Order/Label/PaymentState/' ~ order.paymentState ~ '.html.twig' with { 'value': 'sylius.ui.' ~ order.paymentState, 'attached': true } %} | ||
<h3 class="ui dividing header">{{ 'sylius_refund.ui.refund_payments'|trans }}</h3> | ||
<div class="ui relaxed divided list"> | ||
{% for refund_payment in refund_payments %} | ||
<div class="item" {{ sylius_test_html_attribute('refund') }}> | ||
<div class="right floated content" {{ sylius_test_html_attribute('refund-status') }}> | ||
{% include '@SyliusRefundPlugin/Common/Label/refundPaymentState.html.twig' with {'data': refund_payment.state} %} | ||
</div> | ||
<i class="large payment icon"></i> | ||
<div class="content"> | ||
<div class="header"> | ||
{{ refund_payment.paymentMethod }} | ||
</div> | ||
<div class="description"> | ||
{{ money.format(refund_payment.amount, refund_payment.currencyCode) }} | ||
</div> | ||
</div> | ||
{% if sm_can(refund_payment, 'complete', 'sylius_refund_refund_payment') %} | ||
<div class="ui segment"> | ||
<form action="{{ path('sylius_refund_complete_refund_payment', {'orderNumber': refund_payment.orderNumber, 'id': refund_payment.id}) }}" method="POST" {{ sylius_test_html_attribute('refund-button') }}> | ||
<button type="submit" class="ui icon labeled tiny blue fluid loadable button"><i class="check icon"></i> {{ 'sylius.ui.complete'|trans }}</button> | ||
</form> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/Resources/views/SyliusAdminBundle/Order/Show/_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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% import '@SyliusAdmin/Common/Macro/money.html.twig' as money %} | ||
|
||
{% if order.hasPayments %} | ||
<div class="ui segment" id="payment-state"> | ||
{% include '@SyliusAdmin/Order/Label/PaymentState/' ~ order.paymentState ~ '.html.twig' with { 'value': 'sylius.ui.' ~ order.paymentState, 'attached': true } %} | ||
<h3 class="ui dividing header">{{ 'sylius.ui.payments'|trans }}</h3> | ||
<div class="ui relaxed divided list" id="sylius-payments"> | ||
{% for payment in order.payments %} | ||
{% include '@SyliusAdmin/Order/Show/_payment.html.twig' %} | ||
{% endfor %} | ||
</div> | ||
{% include '@SyliusRefundPlugin/Order/Admin/_refundPayments.html.twig' %} | ||
</div> | ||
{% else %} | ||
<div class="ui segment center aligned" id="no-payments"> | ||
<span class="ui grey large label"> | ||
<i class="ban icon"></i> {{ 'sylius.ui.no_payments'|trans }} | ||
</span> | ||
</div> | ||
{% endif %} |
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
18 changes: 18 additions & 0 deletions
18
tests/Application/templates/bundles/SyliusAdminBundle/Order/Show/_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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% if order.hasPayments %} | ||
<div class="ui segment" id="payment-state"> | ||
{% include '@SyliusAdmin/Order/Label/PaymentState/' ~ order.paymentState ~ '.html.twig' with { 'value': 'sylius.ui.' ~ order.paymentState, 'attached': true } %} | ||
<h3 class="ui dividing header">{{ 'sylius.ui.payments'|trans }}</h3> | ||
<div class="ui relaxed divided list" id="sylius-payments"> | ||
{% for payment in order.payments %} | ||
{% include '@SyliusAdmin/Order/Show/_payment.html.twig' %} | ||
{% endfor %} | ||
</div> | ||
{% include '@SyliusRefundPlugin/Order/Admin/_refundPayments.html.twig' %} | ||
</div> | ||
{% else %} | ||
<div class="ui segment center aligned" id="no-payments"> | ||
<span class="ui grey large label"> | ||
<i class="ban icon"></i> {{ 'sylius.ui.no_payments'|trans }} | ||
</span> | ||
</div> | ||
{% endif %} |
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