Pre registration
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
%article
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.Confirm_You_Email_Address','Confirm Email Address'
|
||||
= columns(medium: 6, large: 5) do
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
%h2=_'articles.conference_registration.headings.Pre_Registration_Details','Pre-Registration is now open!'
|
||||
%p=_'articles.conference_registration.paragraphs.Pre_Registration_Details', 'By completing the pre-registration process you are letting us know that you are interested in coming, it allows us to contact you when we have news, and lets us better plan by knowing who might be coming. Once registration is fully open, we will need to ask a few more questions and you can confirm whether or not you will actually be coming.'
|
||||
%h3=_'articles.conference_registration.headings.Verify_Account','Verify your account'
|
||||
%p=_'articles.conference_registration.paragraphs.Verify_Account', 'In order to confirm that you are a real person and that we will be able to contact you later, please verify your email address. Before continuing with pre-registration, we will send you an email that will allow you to continue with the process.'
|
||||
= columns(medium: 12) do
|
||||
= 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_tag :continue, :value => :confirm_email
|
||||
= columns(medium: 12, class: 'flex-column') do
|
||||
%p.stretch-item=_'articles.conference_registration.paragraphs.facebook_sign_in','Alternatively you can sign in using your Facebook account and skip waiting for us to send you an email.'
|
||||
= link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(:provider => :facebook), class: [:button, :facebook]
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_(@page_title)
|
||||
%p=_'articles.conference_registration.paragraphs.Contact_Info', :s, 2
|
||||
= columns(medium: 12) do
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
%h3=_'articles.conference_registration.headings.name','What is your name?'
|
||||
.text-field.input-field{class: @errors[:name].present? ? 'has-error' : nil}
|
||||
= show_errors :name
|
||||
= label_tag :name
|
||||
= text_field_tag :name, @name, required: true
|
||||
%h3=_'articles.conference_registration.headings.location','Where are you coming from?'
|
||||
.text-field.input-field{class: @errors[:location].present? ? 'has-error' : nil}
|
||||
= show_errors :location
|
||||
= label_tag :location
|
||||
= text_field_tag :location, @registration.city || location(lookup_ip_location), required: true
|
||||
%h3=_'articles.conference_registration.headings.languages','Which languages do you speak?'
|
||||
- puts @errors.to_json.to_s
|
||||
.check-box-field.input-field{class: @errors[:languages].present? ? 'has-error' : nil}
|
||||
- [:en, :es, :fr].each do |language|
|
||||
= check_box_tag "languages[#{language}]", 1, (@registration.languages || [I18n.locale.to_s]).include?(language.to_s)
|
||||
= label_tag "languages_#{language}" do
|
||||
= _"languages.#{language}"
|
||||
= show_errors :languages
|
||||
.actions.next-prev
|
||||
= button_tag (params[:step] == :save ? :save : :next), value: :contact_info
|
||||
= button_tag :previous, value: :prev_contact_info, class: :subdued, formnovalidate: true
|
||||
@@ -3,4 +3,4 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.email_confirm','Please confirm your email address'
|
||||
= columns(medium: 12) do
|
||||
=m('articles.conference_registration.paragraphs.email_confirm', :p)
|
||||
%p=_'articles.conference_registration.paragraphs.email_confirm', :p
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.title
|
||||
%h1=_!@conference.title
|
||||
.details
|
||||
%h3.primary=location(@conference.organizations.first.locations.first)
|
||||
%h2.primary=location(@conference.organizations.first.locations.first)
|
||||
.secondary
|
||||
= date_span(@conference.start_date.to_date, @conference.end_date.to_date)
|
||||
%img{src: @conference.poster.full.url || image_path('default_poster.jpg')}
|
||||
%img{src: @conference.poster.full.url || image_path('default_poster.jpg'), role: :presentation, alt: ''}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
%article
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.Policy_Agreement'
|
||||
%p=_'articles.conference_registration.paragraphs.Policy_Agreement', :s, 2
|
||||
= columns(medium: 10, push: 1) do
|
||||
= render 'application/policy'
|
||||
= columns(medium: 12) do
|
||||
%p=_'articles.conference_registration.paragraphs.Confirm_Agreement', :p
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
.actions= button_tag :agree, :value => :policy
|
||||
= columns(medium: 12) do
|
||||
%h2=_@page_title
|
||||
%p=_'articles.conference_registration.paragraphs.Policy_Agreement', :s, 2
|
||||
= columns(medium: 10, push: 1) do
|
||||
= render 'application/policy'
|
||||
= columns(medium: 12) do
|
||||
%p=_'articles.conference_registration.paragraphs.Confirm_Agreement', :p
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
.actions= button_tag :agree, :value => :policy
|
||||
|
||||
@@ -1,42 +1,20 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.Workshops','Workshops'
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.conference_registration.headings.Add_Workshop'
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
.text-field.input-field
|
||||
= text_field_tag :title, nil, required: true
|
||||
= label_tag :title
|
||||
= text_area_tag :info, nil, required: true
|
||||
= button_tag :add
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.conference_registration.headings.Your_Workshops'
|
||||
%ul.workshops.my-workshops
|
||||
- @my_workshops.each do |workshop|
|
||||
%li
|
||||
%h4=workshop[:title]
|
||||
.info
|
||||
%h5{:contenteditable => true}=workshop[:title]
|
||||
%p{:contenteditable => true}=workshop[:info]
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
= button_tag :save, :value => :save
|
||||
= button_tag :delete, :value => :delete
|
||||
= button_tag :cancel, :value => :cancel
|
||||
%h2=_@page_title
|
||||
= columns(medium: 12) do
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
= button_tag :previous, :value => :registration
|
||||
= button_tag :next, :value => :workshops
|
||||
:javascript
|
||||
function makeWorkshopsClickable() {
|
||||
var workshops = document.querySelectorAll('ul.workshops h4');
|
||||
for (var i = 0; i < workshops.length; i++) {
|
||||
workshops[i].addEventListener('click', function(e) {
|
||||
var workshop = e.target.parentElement;
|
||||
workshop.className = 'view';
|
||||
workshop.querySelector('form').onsubmit = function() {
|
||||
workshop.removeAttribute('class');
|
||||
return false;
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
makeWorkshopsClickable();
|
||||
- if @my_workshops.present?
|
||||
%h3=_'articles.conference_registration.headings.Your_Workshops'
|
||||
%p=_'articles.conference_registration.paragraphs.Your_Workshops', :p
|
||||
= render 'workshops/workshop_previews', :workshops => @my_workshops
|
||||
- else
|
||||
%p=_'articles.conference_registration.paragraphs.Create_Workshop', :p
|
||||
= link_to (_'articles.conference_registration.headings.Add_Workshop'), create_workshop_path(@this_conference.slug), class: :button
|
||||
- if @workshops_in_need.present?
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.conference_registration.headings.Workshops_Looking_For_Facilitators'
|
||||
%p=_'articles.conference_registration.paragraphs.Workshops_Looking_For_Facilitators', :p
|
||||
= render 'workshops/workshop_previews', :workshops => @workshops_in_need
|
||||
- if @workshops.present?
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.conference_registration.headings.All_Workshops'
|
||||
-#%p=_'articles.conference_registration.paragraphs.All_Workshops', :p
|
||||
= render 'workshops/workshop_previews', :workshops => @workshops
|
||||
|
||||
@@ -13,18 +13,18 @@
|
||||
|
||||
= button_tag :save, :value => :save
|
||||
|
||||
:javascript
|
||||
window.jQuery || document.write('<script src="https://code.jquery.com/jquery-2.1.3.min.js"><\/script>')
|
||||
= javascript_include_tag "froala_editor.min.js"
|
||||
= stylesheet_link_tag "froala_editor.min.css"
|
||||
= stylesheet_link_tag "font-awesome.min.css"
|
||||
:javascript
|
||||
$(function() {
|
||||
$('.text-editor textarea').editable({
|
||||
language: '<% I18n.locale.to_s %>',
|
||||
inlineMode: false,
|
||||
blockTags: ["n", "p", "h2", "blockquote", "pre"],
|
||||
buttons: ["formatBlock", "bold", "italic", "underline", "insertOrderedList", "insertUnorderedList", "sep", "createLink", "html", "undo", "redo"],
|
||||
colors: ['#00ADEF', '#DD57EF', '#E6C74B', 'REMOVE']
|
||||
});
|
||||
});
|
||||
/ :javascript
|
||||
/ window.jQuery || document.write('<script src="https://code.jquery.com/jquery-2.1.3.min.js"><\/script>')
|
||||
-#= javascript_include_tag "froala_editor.min.js"
|
||||
-#= stylesheet_link_tag "froala_editor.min.css"
|
||||
-#= stylesheet_link_tag "font-awesome.min.css"
|
||||
/ :javascript
|
||||
/ $(function() {
|
||||
/ $('.text-editor textarea').editable({
|
||||
/ language: '<% I18n.locale.to_s %>',
|
||||
/ inlineMode: false,
|
||||
/ blockTags: ["n", "p", "h2", "blockquote", "pre"],
|
||||
/ buttons: ["formatBlock", "bold", "italic", "underline", "insertOrderedList", "insertUnorderedList", "sep", "createLink", "html", "undo", "redo"],
|
||||
/ colors: ['#00ADEF', '#DD57EF', '#E6C74B', 'REMOVE']
|
||||
/ });
|
||||
/ });
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
= render :partial => 'page_header', :locals => {:page_key => 'Conference_Registration'}
|
||||
- if (steps = current_registration_steps)
|
||||
= row id: 'registration-steps', class: 'flow-steps' do
|
||||
= columns do
|
||||
%ul
|
||||
- current_registration_steps.each do | step |
|
||||
- text = _"articles.conference_registration.headings.#{step[:name].to_s}"
|
||||
%li{class: [step[:enabled] ? :enabled : nil, @register_template == step[:name] ? :current : nil]}
|
||||
- if step[:enabled]
|
||||
.step= link_to text, register_step_path(@this_conference.slug, step[:name])
|
||||
- else
|
||||
.step= text
|
||||
- if @warnings.present?
|
||||
= row class: 'warnings', tag: :ul do
|
||||
- @warnings.each do | warning |
|
||||
= columns tag: :li do
|
||||
= warning
|
||||
%article
|
||||
= row do
|
||||
= render (@register_template || :register).to_s
|
||||
= render @register_template.to_s
|
||||
|
||||
Reference in New Issue
Block a user