mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #5247 from chrishil1/Placeholders_variant
Added placeholders in variant edit page
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user