clarion/app/views/management/volunteers/index.csv.erb

18 lines
912 B
Plaintext
Raw Permalink Normal View History

<%- 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,
volunteer.email,
volunteer.language,
volunteer.unique_id,
volunteer.phone,
volunteer.tshirt_size,
volunteer.tshirt_cut,
volunteer.food_preferences,
volunteer.previous_experience,
volunteer.notes,
volunteer.volunteer_team.name,
volunteer.additional_volunteer_teams.map(&:name).join(', ')]).html_safe -%>
2016-10-09 07:17:34 +03:00
<%- end -%>