BikeBikeBike/app/views/registration_steps/_payment_form.html.haml

27 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-05-30 19:24:44 -07:00
- if @confirm_payment
= registration_step_header(:confirm_payment, description: { amount: (number_to_currency @confirm_amount, unit: '$'), currency: @confirm_currency })
= row do
= columns(medium: 12) do
= save_registration_step(@this_conference, :confirm_payment)
- else
= registration_step_header
= row do
= columns(medium: 12) do
- unless @currencies.present? && @currencies.length > 1
%p.center=_"articles.conference_registration.paragraphs.currency_details", :p, vars: { currency: (_"currencies.#{(@currencies || [@currency]).first}.displayName-count-other") }
= save_registration_step do
.registration-step-options
.options.graded-options{class: "option-count-#{@amounts.size}"}
- @amounts.each_with_index do |option, i|
2017-06-11 15:27:18 -07:00
= button "#{number_to_currency option, unit: '$'} #{_!@currency}".html_safe, value: option, name: :value, class: [:unstyled, "option-#{i + 1}"]
.option-space
2017-05-30 19:24:44 -07:00
.custom-option
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05
2017-06-03 12:55:13 -07:00
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled
2017-06-11 15:27:18 -07:00
- if @currencies.present? && @currencies.length > 1
.option-space
.setting-option
%p Change currency to:
- (@currencies - [@currency]).each do |c|
= button (_"currencies.#{c}.displayName-count-other"), name: :currency, value: c, class: :unstyled