export feature for tracks and booths are done
This commit is contained in:
parent
be1992a03a
commit
e99287d18a
22 changed files with 418 additions and 3 deletions
21
app/views/admin/tracks/_all_tracks.csv.haml
Normal file
21
app/views/admin/tracks/_all_tracks.csv.haml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
- headers = ['Track ID',
|
||||
'Name',
|
||||
'Description',
|
||||
'Room',
|
||||
'Start Date',
|
||||
'Start Date',
|
||||
'Submitter Name',
|
||||
'Included in Cfp',
|
||||
'State']
|
||||
= CSV.generate_line ['All Tracks']
|
||||
= CSV.generate_line headers
|
||||
- @tracks.each do |track|
|
||||
= CSV.generate_line([track.id,
|
||||
track.name,
|
||||
track.description,
|
||||
track.try(:room).try(:name),
|
||||
track.start_date,
|
||||
track.end_date,
|
||||
track.try(:submitter).try(:name),
|
||||
track.cfp_active? ? 'Yes' : 'No',
|
||||
track.state]).html_safe
|
||||
Loading…
Add table
Add a link
Reference in a new issue