2024-04-18 18:57:26 +03:00
|
|
|
<%- csv_headers = %w{id name email language unique_id phone tshirt_size tshirt_cut food_preferences previous_experience notes team additional_teams} -%>
|
2016-10-09 07:17:34 +03:00
|
|
|
<%= CSV.generate_line(csv_headers).html_safe -%>
|
|
|
|
<%- @volunteers.each do |volunteer| -%>
|
|
|
|
<%= CSV.generate_line([volunteer.id,
|
|
|
|
volunteer.name,
|
2024-05-18 15:49:34 +03:00
|
|
|
"#{volunteer.confirmed_at.nil? ? '(unverified) ' : ''}#{volunteer.email}",
|
2016-10-09 07:17:34 +03:00
|
|
|
volunteer.language,
|
|
|
|
volunteer.unique_id,
|
|
|
|
volunteer.phone,
|
|
|
|
volunteer.tshirt_size,
|
|
|
|
volunteer.tshirt_cut,
|
|
|
|
volunteer.food_preferences,
|
|
|
|
volunteer.previous_experience,
|
|
|
|
volunteer.notes,
|
2024-04-18 18:57:26 +03:00
|
|
|
volunteer.volunteer_team.name,
|
|
|
|
volunteer.additional_volunteer_teams.map(&:name).join(', ')]).html_safe -%>
|
2016-10-09 07:17:34 +03:00
|
|
|
<%- end -%>
|