Fix view for registration csv
This commit is contained in:
parent
c27483301a
commit
a1a592dae3
1 changed files with 14 additions and 2 deletions
|
|
@ -1,4 +1,16 @@
|
||||||
- headers = ['Name', 'Email']
|
- headers = ['Attended',
|
||||||
|
'Name',
|
||||||
|
'Nickname',
|
||||||
|
'Affilιation',
|
||||||
|
'Email',
|
||||||
|
'Arrival',
|
||||||
|
'Departure']
|
||||||
= CSV.generate_line headers
|
= CSV.generate_line headers
|
||||||
- @registrations.each do |registration|
|
- @registrations.each do |registration|
|
||||||
= CSV.generate_line([registration.name, registration.email])
|
= CSV.generate_line([registration.attended ? 'X' : '',
|
||||||
|
registration.name,
|
||||||
|
registration.nickname,
|
||||||
|
registration.affiliation,
|
||||||
|
registration.email,
|
||||||
|
registration.arrival.to_s,
|
||||||
|
registration.departure.to_s])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue