From f6710e3f52f1e7e156a356e0c4c1a4241b660cac Mon Sep 17 00:00:00 2001 From: Siddhant Bajaj Date: Sat, 3 Jun 2017 13:23:01 +0530 Subject: [PATCH] Added Export Ticket button in the admin registration page --- app/views/admin/registrations/index.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/admin/registrations/index.html.haml b/app/views/admin/registrations/index.html.haml index 0e7035c0..7e366621 100644 --- a/app/views/admin/registrations/index.html.haml +++ b/app/views/admin/registrations/index.html.haml @@ -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', conference_conference_registration_path(@conference.short_title, 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 }