Add tickets to registration segment
This commit is contained in:
parent
abfb0884a1
commit
e2fd1bbd69
10 changed files with 42 additions and 2 deletions
15
app/views/conference/_tickets.html.haml
Normal file
15
app/views/conference/_tickets.html.haml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%div.row
|
||||
%h3 Tickets
|
||||
-if !@conference.ticket_description.blank?
|
||||
%p #{ @conference.ticket_description }
|
||||
- @conference.supporter_levels.each do |s|
|
||||
%div.col-md-6
|
||||
- if !s.title.blank?
|
||||
%h4 #{ s.title }
|
||||
-if !s.description.blank?
|
||||
%p #{ s.description }
|
||||
- if !s.url.blank?
|
||||
%div.btn-group
|
||||
= link_to "Buy Ticket", s.url, class: 'btn btn-success', target: '_blank'
|
||||
- if !s.ticket_price.blank?
|
||||
= button_tag "#{s.ticket_price}", class: 'btn btn-success'
|
||||
Loading…
Add table
Add a link
Reference in a new issue