diff --git a/app/views/spree/admin/variants/_form.html.haml b/app/views/spree/admin/variants/_form.html.haml index 6da99b7ffc..0123c7de18 100644 --- a/app/views/spree/admin/variants/_form.html.haml +++ b/app/views/spree/admin/variants/_form.html.haml @@ -1,10 +1,10 @@ .label-block.left.six.columns.alpha{'ng-app' => 'admin.products'} .field = f.label :display_name, t('.display_name') - = f.text_field :display_name, class: "fullwidth" + = f.text_field :display_name, class: "fullwidth", placeholder: t('.display_name_placeholder') .field = f.label :display_as, t('.display_as') - = f.text_field :display_as, class: "fullwidth" + = f.text_field :display_as, class: "fullwidth", placeholder: t('.display_as_placeholder') - if product_has_variant_unit_option_type?(@product) - if @product.variant_unit != 'items' diff --git a/config/locales/en.yml b/config/locales/en.yml index 5bc1bea1a9..4ef80ea4e5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3343,6 +3343,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using price: "Price" display_as: "Display As" display_name: "Display Name" + display_as_placeholder: 'eg. 2 kg' + display_name_placeholder: 'eg. Tomatoes' autocomplete: producer_name: "Producer" unit: "Unit"