New registration completed and tested
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= registration_step_header_title
|
||||
- if @info.present?
|
||||
= @info
|
||||
- else
|
||||
= registration_step_header_description
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :maybe, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @will_attend == option
|
||||
= button option, value: option, class: class_name
|
||||
@@ -15,7 +15,10 @@
|
||||
= radiobuttons :currency, (@currencies.map { |c| [(_"currencies.#{c}.displayName-count-other"), c] }), @currency
|
||||
.options.graded-options{class: "option-count-#{@amounts.size}"}
|
||||
- @amounts.each_with_index do |option, i|
|
||||
= button (number_to_currency option, unit: '$'), value: option, name: :value, class: [:unstyled, "option-#{i + 1}"], data: { noxhr: 1 }
|
||||
= button (number_to_currency option, unit: '$'), value: option, name: :value, class: [:unstyled, "option-#{i + 1}"]
|
||||
.custom-option
|
||||
-# if Rails.env.test?
|
||||
=# text_field_tag :custom_value, nil
|
||||
-# else
|
||||
= number_field_tag :custom_value, 50.0, step: 0.05, min: 0.05
|
||||
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled, data: { noxhr: 1 }
|
||||
= button :custom_amount, name: :custom_amount, value: :custom, class: :unstyled
|
||||
|
||||
@@ -26,7 +26,10 @@
|
||||
- when :html
|
||||
.scroller= richtext(data[:value].html_safe)
|
||||
- else
|
||||
= data[:value]
|
||||
- if data[:key].present?
|
||||
=_"#{data[:key]}.#{data[:value]}"
|
||||
- else
|
||||
= data[:value]
|
||||
- else
|
||||
%p.centered=_'articles.conference_registration.paragraphs.registration_cancelled', :p
|
||||
- if @allow_cancel_attendance
|
||||
|
||||
Reference in New Issue
Block a user