From c07a4fcb5e25972292cbb90dba6cab47dbb9b46f Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 5 Jan 2021 11:31:45 +0000 Subject: [PATCH] Remove data-hooks from views --- app/views/spree/admin/payments/_paypal_complete.html.haml | 2 +- app/views/spree/admin/payments/paypal_refund.html.haml | 2 +- app/views/spree/admin/payments/source_views/_paypal.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/spree/admin/payments/_paypal_complete.html.haml b/app/views/spree/admin/payments/_paypal_complete.html.haml index 31addc1a12..d2ea6405f0 100644 --- a/app/views/spree/admin/payments/_paypal_complete.html.haml +++ b/app/views/spree/admin/payments/_paypal_complete.html.haml @@ -1,7 +1,7 @@ = form_tag paypal_refund_admin_order_payment_path(@order, @payment) do .label-block.left.five.columns.alpha %div - %fieldset{"data-hook" => "admin_variant_new_form"} + %fieldset %legend= Spree.t('refund', :scope => :paypal) .field = label_tag 'refund_amount', Spree.t(:refund_amount, :scope => 'paypal') diff --git a/app/views/spree/admin/payments/paypal_refund.html.haml b/app/views/spree/admin/payments/paypal_refund.html.haml index 38f308fdaa..98641d05a2 100644 --- a/app/views/spree/admin/payments/paypal_refund.html.haml +++ b/app/views/spree/admin/payments/paypal_refund.html.haml @@ -11,7 +11,7 @@ = form_tag paypal_refund_admin_order_payment_path(@order, @payment) do .label-block.left.five.columns.alpha %div - %fieldset{"data-hook" => "admin_variant_new_form"} + %fieldset %legend= Spree.t('refund', scope: :paypal) .field = label_tag 'refund_amount', Spree.t(:refund_amount, scope: 'paypal') diff --git a/app/views/spree/admin/payments/source_views/_paypal.html.haml b/app/views/spree/admin/payments/source_views/_paypal.html.haml index 4636995466..d1094fa000 100644 --- a/app/views/spree/admin/payments/source_views/_paypal.html.haml +++ b/app/views/spree/admin/payments/source_views/_paypal.html.haml @@ -1,4 +1,4 @@ -%fieldset{"data-hook" => "paypal"} +%fieldset %legend{align: "center"}= Spree.t(:transaction, scope: :paypal) .row .alpha.six.columns