From 4a65e5817f49fcc2ecc169cded90f1623bdf0859 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 6 Apr 2021 20:17:19 +0100 Subject: [PATCH] Add fieldset title to shipping methods edit form --- app/views/spree/admin/shipping_methods/_form.html.haml | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/spree/admin/shipping_methods/_form.html.haml b/app/views/spree/admin/shipping_methods/_form.html.haml index 934e808a7a..6bba6e37ad 100644 --- a/app/views/spree/admin/shipping_methods/_form.html.haml +++ b/app/views/spree/admin/shipping_methods/_form.html.haml @@ -47,6 +47,7 @@ = render partial: 'spree/admin/shared/calculator_fields', locals: { f: f } %fieldset.tax_categories.no-border-bottom + %legend{align: "center"}= t('.tax_category') = f.field_container :tax_categories do = f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, {}, :class => "select2 fullwidth" = error_message_on :shipping_method, :tax_category_id diff --git a/config/locales/en.yml b/config/locales/en.yml index 0e4c11fd9a..de329cf871 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3525,6 +3525,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using back_to_shipping_methods_list: "Back To Shipping Methods List" form: categories: "Categories" + tax_category: "Tax Category" zones: "Zones" both: "Both Checkout and Back office" back_end: "Back office only"