Add hint for ordergroup address in user form
This commit is contained in:
parent
56f6efa590
commit
86eee94249
2 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,9 @@
|
||||||
|
|
||||||
- if local_assigns[:with_address] && (f.object.ordergroup || f.object.new_record?)
|
- if local_assigns[:with_address] && (f.object.ordergroup || f.object.new_record?)
|
||||||
= f.fields_for [:ordergroup, f.object.ordergroup || Ordergroup.new] do |ogf|
|
= f.fields_for [:ordergroup, f.object.ordergroup || Ordergroup.new] do |ogf|
|
||||||
= ogf.input :contact_address, label: t('activerecord.attributes.ordergroup.contact_address'), required: false
|
- address_hint = f.object.ordergroup.users.count > 1 ? t('.contact_address_hint') : nil
|
||||||
|
= ogf.input :contact_address, label: t('activerecord.attributes.ordergroup.contact_address'), required: false,
|
||||||
|
input_html: { title: address_hint, data: {toggle: 'tooltip', placement: 'right'} }
|
||||||
|
|
||||||
= f.simple_fields_for :settings_attributes do |s|
|
= f.simple_fields_for :settings_attributes do |s|
|
||||||
= s.simple_fields_for :profile, defaults: { inline_label: true } do |profile|
|
= s.simple_fields_for :profile, defaults: { inline_label: true } do |profile|
|
||||||
|
|
|
@ -1423,6 +1423,8 @@ en:
|
||||||
title: Current orders
|
title: Current orders
|
||||||
total_sum: Total sum
|
total_sum: Total sum
|
||||||
who_ordered: Who ordered?
|
who_ordered: Who ordered?
|
||||||
|
user_form_fields:
|
||||||
|
contact_address_hint: The address of your ordergroup. If you update this, it changes for other members of the ordergroup as well.
|
||||||
workgroup_members:
|
workgroup_members:
|
||||||
title: Group memberships
|
title: Group memberships
|
||||||
simple_form:
|
simple_form:
|
||||||
|
|
Loading…
Reference in a new issue