diff --git a/app/views/spree/admin/products/new.html.haml b/app/views/spree/admin/products/new.html.haml index 97c5e0dbf3..d16c2da79f 100644 --- a/app/views/spree/admin/products/new.html.haml +++ b/app/views/spree/admin/products/new.html.haml @@ -9,8 +9,9 @@ .sixteen.columns.alpha .eight.columns.alpha = f.field_container :supplier do - = f.label :supplier_id, t(".supplier") - = f.select :supplier_id, options_from_collection_for_select(@producers, :id, :name, @product.supplier_id), {}, { "data-controller": "tom-select", class: "primary" } + = f.label :supplier, t(".supplier") + %span.required * + = f.select :supplier_id, options_from_collection_for_select(@producers, :id, :name, @product.supplier_id), { include_blank: t("spree.admin.products.new.supplier_select_placeholder") }, { "data-controller": "tom-select", class: "primary" } = f.error_message_on :supplier .eight.columns.omega = f.field_container :name do diff --git a/config/locales/en.yml b/config/locales/en.yml index 7c01a8e9dd..f3274533d2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4061,6 +4061,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using title: "New Product" new_product: "New Product" supplier: "Supplier" + supplier_select_placeholder: "Select a supplier" product_name: "Product Name" units: "Unit Size" value: "Value"