diff --git a/assets/entrypoint.js b/assets/entrypoint.js index c5e8cf09..866791ec 100644 --- a/assets/entrypoint.js +++ b/assets/entrypoint.js @@ -1 +1,3 @@ import './js/refund-button'; + +import './styles/main.scss'; diff --git a/assets/styles/main.scss b/assets/styles/main.scss new file mode 100644 index 00000000..86d0c649 --- /dev/null +++ b/assets/styles/main.scss @@ -0,0 +1 @@ +@import 'refund'; diff --git a/assets/styles/refund.scss b/assets/styles/refund.scss new file mode 100644 index 00000000..bba7f4b1 --- /dev/null +++ b/assets/styles/refund.scss @@ -0,0 +1,4 @@ +textarea.refund-comment { + min-height: 4rem; + height: 4rem; +} diff --git a/config/twig_hooks/admin/order/refund/show.yaml b/config/twig_hooks/admin/order/refund/show.yaml index 51a83fc8..190ae2d6 100644 --- a/config/twig_hooks/admin/order/refund/show.yaml +++ b/config/twig_hooks/admin/order/refund/show.yaml @@ -117,7 +117,7 @@ sylius_twig_hooks: 'sylius_refund.admin.order.refund.content.sections.form.fields': payment_method: template: '@SyliusRefundPlugin/admin/order/refund/content/sections/form/fields/payment_method.html.twig' - priority: 100 + priority: 0 comment: template: '@SyliusRefundPlugin/admin/order/refund/content/sections/form/fields/comment.html.twig' - priority: 0 + priority: 100 diff --git a/templates/admin/order/refund/content/sections/form/fields/comment.html.twig b/templates/admin/order/refund/content/sections/form/fields/comment.html.twig index 87eebf58..327bbba0 100644 --- a/templates/admin/order/refund/content/sections/form/fields/comment.html.twig +++ b/templates/admin/order/refund/content/sections/form/fields/comment.html.twig @@ -1,6 +1,6 @@ -
+
- +
diff --git a/templates/admin/order/refund/content/sections/form/fields/payment_method.html.twig b/templates/admin/order/refund/content/sections/form/fields/payment_method.html.twig index fa229325..452cff0d 100644 --- a/templates/admin/order/refund/content/sections/form/fields/payment_method.html.twig +++ b/templates/admin/order/refund/content/sections/form/fields/payment_method.html.twig @@ -3,7 +3,7 @@ {% set payment_methods = hookable_metadata.context.payment_methods %} {% set original_payment_method = order.lastPayment(completed).method %} -
+