Refactoring Tickets
- Tickets now independent from registration - Implemented money gem #419
This commit is contained in:
parent
5485fe0e7f
commit
5f8a8ac6d9
63 changed files with 1581 additions and 573 deletions
26
app/views/conference_registrations/_tickets.html.haml
Normal file
26
app/views/conference_registrations/_tickets.html.haml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
= form_tag(conference_ticket_purchases_path, method: :post) do |f|
|
||||
%table.table.table-hover
|
||||
%thead
|
||||
%tr
|
||||
%th Ticket
|
||||
%th Quantity
|
||||
%th Price
|
||||
%th Total
|
||||
%tbody
|
||||
- tickets.each do |ticket|
|
||||
= render partial: 'ticket', f: f, locals: { ticket: ticket }
|
||||
%tr
|
||||
%td
|
||||
%td
|
||||
%td.col-sm-1.col-md-1.text-center
|
||||
%h4
|
||||
Total
|
||||
%td.col-sm-1.col-md-1.text-center
|
||||
%h4
|
||||
%strong
|
||||
%span{ id: 'total_price' }
|
||||
0
|
||||
%p
|
||||
= button_tag(type: 'submit', class: 'btn btn-success btn-lg pull-right') do
|
||||
Support
|
||||
%i.fa.fa-shopping-cart
|
||||
Loading…
Add table
Add a link
Reference in a new issue