New registration process
This commit is contained in:
@@ -15,6 +15,6 @@
|
||||
= I18n.t(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}", @page_title_vars)
|
||||
= row do
|
||||
= columns do
|
||||
%h1=_(@main_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}", :t, @main_title_vars || (@page_title_vars.present? && @page_title.blank? ? { vars: @page_title_vars } : nil))
|
||||
%h1=@main_title_t || _(@main_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}", :t, @main_title_vars || (@page_title_vars.present? && @page_title.blank? ? { vars: @page_title_vars } : nil))
|
||||
- content_for :og_image do
|
||||
= image
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
= render :partial => 'application/header', :locals => {:page_group => :conferences, :page_key => page_key, :image_file => @this_conference.poster_url}
|
||||
- @main_title_t ||= (@this_conference.title)
|
||||
-# @page_title ||= (@this_conference.title)
|
||||
= render partial: 'application/header', locals: { page_group: :conferences, page_key: page_key, image_file: @this_conference.poster_url }
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
= registration_step_header(description: { city: @city.city })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :address, @address, required: true, big: true
|
||||
.multi-field
|
||||
= textfield :city, @city.city, readonly: true
|
||||
= textfield :territory, @city.translate_territory, readonly: true
|
||||
= textfield :country, @city.translate_country, readonly: true
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @is_attending == (option == :yes)
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header(description: { city: @city.city, date_span: date_span(@min_date, @max_date) })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @can_provide_housing == (option == :yes)
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= calendar_day_select :date, @date, (@min_date..@max_date), (@conference_start_date..@conference_end_date)
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :info, @info, required: true, label: false
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :other, @other, plain: true, short: true, label: false
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :phone, @phone, required: true, big: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12, class: :centered) do
|
||||
= save_registration_step do
|
||||
= numberfield :bed_space, @bed_space, required: true, step: 1, min: 0
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12, class: :centered) do
|
||||
= save_registration_step do
|
||||
= numberfield :floor_space, @floor_space, required: true, step: 1, min: 0
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @tent_space == (option == :yes)
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= calendar_day_select :date, @date, (@min_date..@max_date), (@conference_start_date..@conference_end_date)
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :allergies, @allergies, required: false, plain: true, short: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header(description: { city: @city.city, min_date: date(@min_date, :span_same_year_date_1) })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= calendar_day_select :date, @date, (@min_date..@max_date), (@conference_start_date..@conference_end_date)
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- @bike_options.each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @bike.present? && @bike.to_sym == option
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @has_companion == (option == :yes)
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= emailfield :email, @email, required: true, big: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :other, @other, required: false, plain: true, short: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header(description: { city: @city.city, max_date: date(@max_date, :span_same_year_date_1) })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= calendar_day_select :date, @date, (@min_date..@max_date), (@conference_start_date..@conference_end_date)
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.vertical-registration-step-options
|
||||
.options
|
||||
- @food_options.each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @food.present? && @food.to_sym == option
|
||||
= button "food_#{option}".to_sym, value: option, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :other, @other, required: false, plain: true, short: true
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header(description: { city: @city.city })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.vertical-registration-step-options
|
||||
.options
|
||||
- @housing_types.each do |type|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if type == @housing
|
||||
= button "housing_#{type}".to_sym, value: type, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= checkboxes :languages, ConferenceRegistration.all_languages, @languages, 'languages', heading: 'articles.conference_registration.headings.languages'
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :name, @name, required: true, big: true
|
||||
@@ -0,0 +1,9 @@
|
||||
= registration_step_header(description: { city: @city.city })
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :address, @address, required: true, big: true
|
||||
.multi-field
|
||||
= textfield :city, @city.city, readonly: true
|
||||
= textfield :territory, @city.translate_territory, readonly: true
|
||||
= textfield :country, @city.translate_country, readonly: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= emailfield :email, @email, required: true, big: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :mailing_address, @address, required: true, plain: true, short: true
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :name, @name, required: true, big: true
|
||||
@@ -0,0 +1,7 @@
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= registration_step_header_title(@step_name)
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textfield :location, @location, required: true, big: true
|
||||
@@ -0,0 +1,7 @@
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= registration_step_header_title
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
%p.center=(_"articles.conference_registration.paragraphs.#{@step}", vars: { city: "<u>#{@city}</u>".html_safe }).html_safe
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.registration-step-options
|
||||
.options
|
||||
- [:yes, :no].each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @org_member == (option == :yes)
|
||||
= button option, value: option, class: class_name
|
||||
@@ -0,0 +1,5 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
= textarea :interest, @interest, required: false, plain: true, short: true, label: false
|
||||
@@ -0,0 +1,11 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.vertical-registration-step-options
|
||||
.options
|
||||
- @organizations.each do |org|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @organization.present? && org.id == @organization.id
|
||||
= button org.name, value: org.id, name: :org_id, class: class_name
|
||||
= button :organization_none, value: :create, class: [:unstyled, :secondary]
|
||||
@@ -0,0 +1,21 @@
|
||||
- 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
|
||||
- if @currencies.present? && @currencies.length > 1
|
||||
= 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 }
|
||||
.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, data: { noxhr: 1 }
|
||||
@@ -0,0 +1,10 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.vertical-registration-step-options
|
||||
.options
|
||||
- @payment_methods.each do |option|
|
||||
- class_name = [:unstyled]
|
||||
- class_name << :selected if @payment_method.present? && @payment_method.to_sym == option
|
||||
= button "payment_#{option}".to_sym, value: option, class: class_name
|
||||
@@ -0,0 +1,14 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
.policy-agreement
|
||||
%h3=_'articles.policy.headings.The_Agreement'
|
||||
%ul
|
||||
- policies.each do |term|
|
||||
%li
|
||||
- id = "policies[#{term}]"
|
||||
= check_box_tag(id, 1, (@accepted_policies || {}).include?(term))
|
||||
%label.term{for: id}=_"articles.policy.term.#{term.to_s}", :s, 2
|
||||
= columns(medium: 12) do
|
||||
%p=_'articles.conference_registration.paragraphs.Confirm_Agreement', :p
|
||||
@@ -0,0 +1,44 @@
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
= save_registration_step do
|
||||
- if @is_attending
|
||||
%table#review
|
||||
- @step_data.each do |step, data|
|
||||
- unless data[:type] == :none
|
||||
%tr
|
||||
%th
|
||||
=_"articles.conference_registration.step_names.#{step}"
|
||||
= button :edit, name: :edit_step, value: step, class: [:unstyled, :edit]
|
||||
%td
|
||||
- case data[:type]
|
||||
- when :bool
|
||||
=_"forms.actions.generic.#{data[:value] ? 'yes' : 'no'}"
|
||||
- when :list
|
||||
= data[:value].map { |item| _"#{data[:key]}.#{item}" }.join(_!(", "))
|
||||
- when :currency
|
||||
= (number_to_currency data[:value].to_f, unit: '$')
|
||||
=_!(data[:currency].to_s).html_safe
|
||||
- when :date
|
||||
= date(data[:value].to_date, :long)
|
||||
- when :enum
|
||||
=_("#{data[:key] || ('forms.labels.generic.' + step.to_s + '.')}#{data[:value]}")
|
||||
- when :html
|
||||
.scroller= richtext(data[:value].html_safe)
|
||||
- else
|
||||
= data[:value]
|
||||
- else
|
||||
%p.centered=_'articles.conference_registration.paragraphs.registration_cancelled', :p
|
||||
- if @allow_cancel_attendance
|
||||
.actions.centered
|
||||
= button :cancel_registration, value: :cancel_registration, class: :red
|
||||
- if @allow_reopen_attendance
|
||||
.actions.centered
|
||||
= button :reopen_registration, value: :reopen_registration
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.Workshops', :t
|
||||
%p=_'articles.conference_registration.paragraphs.workshops', :p
|
||||
.actions.centered
|
||||
= link_to (_'articles.conference_registration.actions.View_Workshops'), workshops_path(@this_conference), class: :button
|
||||
= link_to (_'actions.workshops.create'), create_workshop_path(@this_conference), class: [:button, :modify]
|
||||
@@ -0,0 +1,13 @@
|
||||
= columns(medium: 12) do
|
||||
%p=_"articles.conference_registration.paragraphs.#{@this_conference.registration_status == :open ? '': 'Pre_'}Registration_Details"
|
||||
%h3=_'articles.conference_registration.headings.Verify_Account'
|
||||
%p=_'articles.conference_registration.paragraphs.Verify_Account'
|
||||
|
||||
= form_tag register_path(@this_conference.slug), class: 'flex-form' do
|
||||
.email-field.input-field.big
|
||||
= email_field_tag :email, nil, required: true
|
||||
= label_tag :email
|
||||
= button :continue, value: :confirm_email
|
||||
= columns(medium: 12, class: 'flex-column') do
|
||||
%p.stretch-item=_'articles.conference_registration.paragraphs.facebook_sign_in'
|
||||
= link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(:provider => :facebook), class: [:button, :facebook]
|
||||
@@ -14,8 +14,6 @@
|
||||
- else
|
||||
%h2=_@page_title, :t
|
||||
|
||||
= registration_step_menu
|
||||
|
||||
= textfield :title, @title, required: true, lang: @translation, big: true, original_value: @is_translating ? @workshop.title! : nil, original_lang: @workshop.locale
|
||||
= textarea :info, @info, help: 'articles.workshops.paragraphs.info', lang: @translation, original_value: @is_translating ? richtext(@workshop.info!, 4).html_safe : nil, original_lang: @workshop.locale
|
||||
- if !@is_translating && (@workshop.id.blank? || @can_edit)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
= render 'conferences/page_header', :page_key => 'Conference_Registration'
|
||||
|
||||
= registration_step_menu
|
||||
= render 'conferences/page_header', page_key: 'Conference_Registration'
|
||||
|
||||
%article
|
||||
= render 'workshops/show', :workshop => @workshop, :translations_available_for_editing => @translations_available_for_editing, :preview => false
|
||||
|
||||
Reference in New Issue
Block a user