Add warning message to enterprise ship methods list and ship method edit page

This commit is contained in:
Luis Ramos
2020-05-13 15:35:01 +01:00
parent d017c0b701
commit a6ea79d3a5
3 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
- if @shipping_methods.count > 0
.row
= t 'spree.admin.shipping_methods.form.deactivation_warning'
%table
%thead
%tr

View File

@@ -1,6 +1,8 @@
= admin_inject_shipping_method
.alpha.eleven.columns{ "ng-app" => "admin.shippingMethods",
"ng-controller" => "shippingMethodCtrl" }
.row
= t '.deactivation_warning'
.row
.alpha.three.columns
= f.label :name, t(:name)

View File

@@ -3246,6 +3246,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
zones: "Zones"
both: "Both Checkout and Back office"
back_end: "Back office only"
deactivation_warning: "De-activating a shipping method can make the shipping method disappear from your list. Alternatively, you can hide a shipping method from the checkout page by setting the option 'Display' to 'back office only'."
payment_methods:
new:
new_payment_method: "New Payment Method"