mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
parent
32ed3b6373
commit
576dc17100
2 changed files with 5 additions and 0 deletions
4
app/views/admin/registrations/index.csv.haml
Normal file
4
app/views/admin/registrations/index.csv.haml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- headers = ['Name', 'Email']
|
||||
= CSV.generate_line headers
|
||||
- @registrations.each do |registration|
|
||||
= CSV.generate_line([registration.name, registration.email])
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
= "(#{@registrations.length})" if @registrations
|
||||
.btn-group.pull-right
|
||||
- if can? :read, Registration
|
||||
= link_to 'Export CSV', admin_conference_registrations_path(@conference.short_title, format: :csv), class: 'btn btn-success'
|
||||
= link_to 'Export PDF', admin_conference_registrations_path(@conference.short_title, format: :pdf), class: 'btn btn-success'
|
||||
= link_to 'Export XLS', {format: :xlsx}, class: 'btn btn-success'
|
||||
%p.text-muted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue