Added placeholders

This commit is contained in:
jeffrey s hill md
2020-04-16 14:59:41 -05:00
parent 4ef5dfe430
commit d8444dcf3c
2 changed files with 4 additions and 2 deletions

View File

@@ -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('admin.products.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('admin.products.display_as_placeholder')
- if product_has_variant_unit_option_type?(@product)
- if @product.variant_unit != 'items'

View File

@@ -476,6 +476,8 @@ en:
products:
unit_name_placeholder: 'eg. bunches'
display_as_placeholder: 'eg. 2 kg'
display_name_placeholder: 'eg. Tomatoes'
index:
unit: Unit
display_as: Display As