2016-07-27 19:42:42 +05:30
|
|
|
.div
|
|
|
|
|
.col-md-12.table-responsive
|
|
|
|
|
%table.table.table-hover
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th Ticket
|
|
|
|
|
%th Quantity
|
|
|
|
|
%th Price
|
|
|
|
|
%th Total
|
|
|
|
|
%tbody
|
|
|
|
|
- @unpaid_ticket_purchases.each do |ticket|
|
|
|
|
|
%tr
|
|
|
|
|
%td
|
|
|
|
|
= ticket.title
|
|
|
|
|
%td
|
|
|
|
|
= ticket.quantity
|
|
|
|
|
%td
|
|
|
|
|
= humanized_money_with_symbol ticket.price
|
|
|
|
|
%td
|
|
|
|
|
= humanized_money_with_symbol ticket.quantity * ticket.price
|
|
|
|
|
|
|
|
|
|
= form_tag conference_payments_path do
|
2016-07-28 15:28:43 +05:30
|
|
|
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
2016-08-16 00:43:48 +05:30
|
|
|
data: { amount: @total_amount_to_pay.cents, label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",
|
2022-05-06 14:27:15 +02:00
|
|
|
email: current_user.email, currency: @total_amount_to_pay.currency, name: ENV.fetch('OSEM_NAME', 'OSEM'),
|
2025-08-12 14:37:45 +02:00
|
|
|
description: "book your tickets", key: ENV.fetch('STRIPE_PUBLISHABLE_KEY'), locale: "auto"}}
|
2016-08-10 13:53:14 +05:30
|
|
|
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'
|