views/_payment: decrease script indentation
This commit is contained in:
parent
164101f2fe
commit
060d65c430
1 changed files with 3 additions and 8 deletions
|
|
@ -21,12 +21,7 @@
|
||||||
|
|
||||||
= form_tag conference_payments_path do
|
= form_tag conference_payments_path do
|
||||||
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
%script.stripe-button{ src: "https://checkout.stripe.com/checkout.js",
|
||||||
data: { amount: @total_amount_to_pay.cents,
|
data: { amount: @total_amount_to_pay.cents, label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",
|
||||||
label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}",
|
email: current_user.email, currency: @total_amount_to_pay.currency, name: ENV['OSEM_NAME'] || 'OSEM',
|
||||||
email: current_user.email,
|
description: "book your tickets", key: Rails.application.secrets.stripe_publishable_key, locale: "auto"}}
|
||||||
currency: @total_amount_to_pay.currency,
|
|
||||||
name: ENV['OSEM_NAME'] || 'OSEM',
|
|
||||||
description: "book your tickets",
|
|
||||||
key: Rails.application.secrets.stripe_publishable_key,
|
|
||||||
locale: "auto"}}
|
|
||||||
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'
|
= link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue