-
Notifications
You must be signed in to change notification settings - Fork 71
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
Convert RefundPayment state values to lowercase #197
Convert RefundPayment state values to lowercase #197
Conversation
@@ -0,0 +1,13 @@ | |||
{% | |||
set viewOptions = { | |||
completed: { icon: 'adjust', color: 'green' }, |
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.
Colors and icons are re-used from regular payment label. To me it looks better balanced.
@@ -17,7 +17,7 @@ | |||
<tr> | |||
<td>{{ money.format(refund_payment.amount, refund_payment.currencyCode) }}</td> | |||
<td> | |||
{% include [('@SyliusRefundPlugin/RefundPayment/Label/State/' ~ refund_payment.state ~ '.html.twig'), '@SyliusUi/Label/_default.html.twig'] with {'value': refund_payment.state} %} | |||
{% include '@SyliusRefundPlugin/Common/Label/refundPaymentState.html.twig' with {'data': refund_payment.state} %} |
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.
include
is redesigned in fashion of SyliusAdmin/SyliusShop paymentState label.
{% if refund_payment.state != 'sylius_refund.ui.completed'|trans %} I will just leave it here as thinking material :D |
3c61308
to
8e2f070
Compare
@lchrusciel @Zales0123 hey guys, any questions? Can it be merged? |
It can be merged, but we need to add it to UPGRADE.md. Can you do it? |
8e2f070
to
083e706
Compare
@lchrusciel done |
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.
I wish we have more contributors like you 🎉
Thank you, Dmitri! 🎉 |
Great, thank you! :) |
Fixes #188
Supersedes #190