Updates views
This commit is contained in:
@@ -10,17 +10,21 @@
|
||||
- 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|
|
||||
= button "#{number_to_currency option, unit: '$'} #{_!@currency}".html_safe, value: option, name: :value, class: [:unstyled, "option-#{i + 1}"]
|
||||
.option-space
|
||||
.custom-option
|
||||
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05
|
||||
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled
|
||||
- if @currencies.present? && @currencies.length > 1
|
||||
- if @conference.slug == "South2022"
|
||||
%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;"}
|
||||
= textfield :notes, @notes, required: true
|
||||
- else
|
||||
.registration-step-options
|
||||
.options.graded-options{class: "option-count-#{@amounts.size}"}
|
||||
- @amounts.each_with_index do |option, i|
|
||||
= button "#{number_to_currency option, unit: '$'} #{_!@currency}".html_safe, value: option, name: :value, class: [:unstyled, "option-#{i + 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
|
||||
.custom-option
|
||||
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05
|
||||
= button :custom_amount, name: :custom_amount, value: :custom, 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
|
||||
|
||||
@@ -76,7 +76,14 @@
|
||||
- if guest.housing_data['other'].present?
|
||||
%td{colspan: 3, lang: guest.user.locale.to_s == I18n.locale.to_s ? nil : guest.user.locale}
|
||||
= paragraph guest.housing_data['other']
|
||||
|
||||
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
- if @this_conference.city_name.present? && @this_conference.city_id == 433
|
||||
- if @this_conference.payment_message.present?
|
||||
= richtext @this_conference.payment_message
|
||||
%iframe{:src => "https://opencollective.com/embed/bikebike-everywhere/donate?amount=30&email=#{current_user.email}&name=#{current_user.firstname} #{current_user.lastname}", :style => "width: 100%; min-height: 100vh;"}
|
||||
|
||||
- if @this_conference.registration_open
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
|
||||
Reference in New Issue
Block a user