From fe6bcb50934b76a8a52fb111adc6e311dcf28c13 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Wed, 13 May 2020 16:32:51 +0100 Subject: [PATCH] Add de-activation warning to payment methods edit page --- app/views/spree/admin/payment_methods/_form.html.haml | 4 +++- config/locales/en.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/payment_methods/_form.html.haml b/app/views/spree/admin/payment_methods/_form.html.haml index 371e4cd0b5..a6fa7f41cd 100644 --- a/app/views/spree/admin/payment_methods/_form.html.haml +++ b/app/views/spree/admin/payment_methods/_form.html.haml @@ -1,6 +1,8 @@ = admin_inject_payment_method = admin_inject_json_ams_array "admin.paymentMethods", "shops", @hubs, Api::Admin::BasicEnterpriseSerializer -%div.alpha.eleven.columns{ "ng-app" => "admin.paymentMethods", "ng-controller" => "paymentMethodCtrl" } +.alpha.eleven.columns{ "ng-app" => "admin.paymentMethods", "ng-controller" => "paymentMethodCtrl" } + .row + = t '.deactivation_warning' .row .alpha.three.columns = label_tag nil, t(:name) diff --git a/config/locales/en.yml b/config/locales/en.yml index bb15d37476..a77f8f4e7d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3275,6 +3275,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using both: "Both Checkout and Back office" front_end: "Checkout only" back_end: "Back office only" + deactivation_warning: "De-activating a payment method can make the payment method disappear from your list. Alternatively, you can hide a payment method from the checkout page by setting the option 'Display' to 'back office only'." payments: source_forms: stripe: