2016-03-04 16:28:18 +01:00
|
|
|
module Admin::OrdergroupsHelper
|
|
|
|
def ordergroup_members_title(ordergroup)
|
|
|
|
s = ''
|
|
|
|
s += ordergroup.users.map(&:name).join(', ') if ordergroup.users.any?
|
2023-05-12 13:01:12 +02:00
|
|
|
s += "\n" + Ordergroup.human_attribute_name(:contact) + ': ' + ordergroup.contact_person if ordergroup.contact_person.present?
|
2016-03-04 16:28:18 +01:00
|
|
|
s
|
|
|
|
end
|
|
|
|
end
|