group offer member xlsx with emailadress

parent bbd62bd6
Pipeline #40100 canceled with stage
in 3 minutes and 48 seconds
......@@ -46,7 +46,10 @@ wb.add_worksheet(name: t('group_offers', count: 2)) do |sheet|
type = t("offer_type.#{offer.offer_type}") if offer.offer_type?
state = t("offer_state.#{offer.offer_state}") if offer.offer_state?
creator = offer.creator if offer.creator
volunteers = offer.volunteers_with_roles
volunteers = offer.volunteers.map do |volunteer|
role_key = offer.responsible?(volunteer) ? 'responsible' : 'member'
"#{volunteer} (#{I18n.t("activerecord.attributes.group_assignment.#{role_key}")}) #{volunteer.contact.primary_email}"
end.compact
sheet.add_row [
offer.active? ? 'Aktiv' : 'Inaktiv',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment