Merge 9696433c61 into 7a7fcced48
This commit is contained in:
commit
adef747215
6 changed files with 18 additions and 0 deletions
|
|
@ -70,6 +70,7 @@
|
|||
method: :get, class: 'btn btn-primary'
|
||||
= link_to 'Delete', admin_conference_registration_path(@conference.short_title, registration),
|
||||
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the Registration for #{registration.name}?" }
|
||||
= link_to 'Export Ticket', admin_conference_registration_path(@conference.short_title, registration, format: :pdf), class: 'btn btn-success'
|
||||
- @registrations.each_with_index do |registration, index|
|
||||
.questions{class: "question#{index}", style: 'display:none;'}
|
||||
= render partial: 'questions', locals: { registration: registration }
|
||||
|
|
|
|||
2
app/views/admin/registrations/show.pdf.prawn
Normal file
2
app/views/admin/registrations/show.pdf.prawn
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
prawn_document(force_download: true, filename: "#{@file_name}.pdf", page_layout: :landscape) do |pdf|
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue