|
@ -10,17 +10,21 @@ |
|
|
- unless @currencies.present? && @currencies.length > 1 |
|
|
- unless @currencies.present? && @currencies.length > 1 |
|
|
%p.center=_"articles.conference_registration.paragraphs.currency_details", :p, vars: { currency: (_"currencies.#{(@currencies || [@currency]).first}.displayName-count-other") } |
|
|
%p.center=_"articles.conference_registration.paragraphs.currency_details", :p, vars: { currency: (_"currencies.#{(@currencies || [@currency]).first}.displayName-count-other") } |
|
|
= save_registration_step do |
|
|
= save_registration_step do |
|
|
.registration-step-options |
|
|
- if @conference.slug == "South2022" |
|
|
.options.graded-options{class: "option-count-#{@amounts.size}"} |
|
|
%iframe{:src => "https://opencollective.com/embed/bikebike-everywhere/donate?email=#{current_user.email}&name=#{current_user.firstname} #{current_user.lastname}", :style => "width: 100%; min-height: 100vh;"} |
|
|
- @amounts.each_with_index do |option, i| |
|
|
= textfield :notes, @notes, required: true |
|
|
= button "#{number_to_currency option, unit: '$'} #{_!@currency}".html_safe, value: option, name: :value, class: [:unstyled, "option-#{i + 1}"] |
|
|
- else |
|
|
.option-space |
|
|
.registration-step-options |
|
|
.custom-option |
|
|
.options.graded-options{class: "option-count-#{@amounts.size}"} |
|
|
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05 |
|
|
- @amounts.each_with_index do |option, i| |
|
|
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled |
|
|
= button "#{number_to_currency option, unit: '$'} #{_!@currency}".html_safe, value: option, name: :value, class: [:unstyled, "option-#{i + 1}"] |
|
|
- if @currencies.present? && @currencies.length > 1 |
|
|
|
|
|
.option-space |
|
|
.option-space |
|
|
.setting-option |
|
|
.custom-option |
|
|
%p Change currency to: |
|
|
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05 |
|
|
- (@currencies - [@currency]).each do |c| |
|
|
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled |
|
|
= button (_"currencies.#{c}.displayName-count-other"), name: :currency, value: c, class: :unstyled |
|
|
- 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 |
|
|