Pre registration
This commit is contained in:
@@ -5,5 +5,4 @@
|
||||
= columns(medium: 12) do
|
||||
%h1
|
||||
=_'error.404.title','This page does not exist!'
|
||||
%p
|
||||
=p(_'error.404.description', :p)
|
||||
=paragraph(_'error.404.description', :p)
|
||||
@@ -5,13 +5,14 @@
|
||||
- figure = nil
|
||||
- if capable_of(:css_mixblendmode)
|
||||
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
|
||||
- elsif capable_of(:svg) && Rails.env != 'test'
|
||||
- banner_image = 'application/banner_image.svg'
|
||||
- else
|
||||
- style = "background-image: url(#{image})"
|
||||
#header-title.short{style: style}
|
||||
= (render banner_image, {:image => image}) if banner_image
|
||||
= (render banner_image, {:image => image}) if defined?(banner_image) == "local-variable"
|
||||
= cover.html_safe if cover
|
||||
= row do
|
||||
= columns do
|
||||
%h1=_(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}")
|
||||
- if @page_title.present? || defined?(page_group)
|
||||
- content_for :title do
|
||||
=@page_title.present? ? I18n.t(@page_title, @page_title_vars) : I18n.t("page_titles.#{page_group.to_s}.#{page_key.to_s}")
|
||||
= row do
|
||||
= columns do
|
||||
%h1=(_"page_titles.#{page_group.to_s}.#{page_key.to_s}")
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.permission_denied.headings.confirmation_sent','Confirmation Sent'
|
||||
= columns(medium: 6) do
|
||||
=m('articles.permission_denied.paragraphs.confirmation_sent', :p)
|
||||
%p='articles.permission_denied.paragraphs.confirmation_sent', :p
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
- if @schedule
|
||||
%h3=_'articles.workshops.headings.Schedule'
|
||||
= render 'schedule/programme', :schedule => @schedule, :conference => @conference, :workshops => @workshops, :events => @events, :locations => @locations, :show_interest => true, :day_parts => @day_parts, :show_previews => true
|
||||
- elsif @conference.registration_open
|
||||
%h3=_'articles.workshops.headings.Proposed_Workshops'
|
||||
%p=_'articles.workshops.paragraphs.Proposed_Workshops', "Would you like to facilitate your own workshop? Simply register and visit the workshops page. If you have already registered you can access the page by restarting the registration process."
|
||||
%ul.workshop-list
|
||||
- @conference.workshops.sort_by{ |w| w.title.downcase }.each do |w|
|
||||
%li
|
||||
%h4=w.title
|
||||
.workshop-interest
|
||||
- if w.interested?(current_user)
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{w.interested_count - 1} others are interested in this workshop", :vars => {:count => (w.interested_count - 1)}
|
||||
- elsif w.interested_count > 0
|
||||
=_'articles.workshops.info.interested_count', "#{w.interested_count} people are interested in this workshop", :vars => {:count => w.interested_count}
|
||||
.workshop-description=markdown w.info
|
||||
- if @conference.registration_status == :open
|
||||
%h3=_'articles.workshops.headings.Proposed_Workshops'
|
||||
%p=_'articles.workshops.paragraphs.Proposed_Workshops', "Would you like to facilitate your own workshop? Simply register and visit the workshops page. If you have already registered you can access the page by restarting the registration process."
|
||||
%ul.workshop-list
|
||||
- @conference.workshops.sort_by{ |w| w.title.downcase }.each do |w|
|
||||
%li
|
||||
%h4=w.title
|
||||
.workshop-interest
|
||||
- if w.interested?(current_user)
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{w.interested_count - 1} others are interested in this workshop", :vars => {:count => (w.interested_count - 1)}
|
||||
- elsif w.interested_count > 0
|
||||
=_'articles.workshops.info.interested_count', "#{w.interested_count} people are interested in this workshop", :vars => {:count => w.interested_count}
|
||||
.workshop-description=markdown w.info
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
= render :partial => 'application/header', :locals => {:image_file => @banner_image || '403.jpg'}
|
||||
%article
|
||||
- if @template
|
||||
- if @template.present?
|
||||
=render @template
|
||||
- else
|
||||
%h2=_'articles.permission_denied.headings.main','Sorry, you currently don\'t have access to this page'
|
||||
%p=_'articles.permission_denied.paragraphs.main', :p
|
||||
= row do
|
||||
= columns do
|
||||
%h2=_'articles.permission_denied.headings.main','Sorry, you currently don\'t have access to this page'
|
||||
%p=_'articles.permission_denied.paragraphs.main', :p
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,19 +3,17 @@
|
||||
%head
|
||||
%meta{ charset: 'utf-8' }
|
||||
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0' }
|
||||
%title= (yield :title) + (content_for?(:title) ? (_!' | ') : '') + (_!'Bike!Bike!')
|
||||
-#%title= (yield :title) + (content_for?(:title) ? (_!' | ') : '') + (_!'Bike!Bike!')
|
||||
%title=_!('Bike!Bike!' + (content_for?(:title) ? " - #{yield :title}" : ''))
|
||||
%meta{ name: 'description', content: (yield_or_default :description, I18n.t('page_descriptions.home')) }
|
||||
= csrf_meta_tags
|
||||
= inject_css!
|
||||
- (@stylesheets || []).each do |css|
|
||||
= inject_css! css
|
||||
= stylesheet_link_tag 'i18n-debug' if request.params['i18nDebug']
|
||||
= stylesheets
|
||||
%link{ href: asset_path('favicon.ico'), rel: 'shortcut icon', type: 'image/x-icon' }
|
||||
%link{ href: asset_path('favicon.ico'), rel: 'icon', type: 'image/x-icon' }
|
||||
%link{ href: asset_path('apple-touch-icon.png'), rel: 'apple-touch-icon' }
|
||||
%link{ href: asset_path('apple-touch-icon-72x72.png'), rel: 'apple-touch-icon', sizes: '72x72' }
|
||||
%link{ href: asset_path('apple-touch-icon-114x114.png'), rel: 'apple-touch-icon', sizes: '114x114' }
|
||||
%link{ href: asset_path('apple-touch-icon-144x144.png'), rel: 'apple-touch-icon', sizes: '144x144' }
|
||||
-#%link{ href: asset_path('apple-touch-icon.png'), rel: 'apple-touch-icon' }
|
||||
-#%link{ href: asset_path('apple-touch-icon-72x72.png'), rel: 'apple-touch-icon', sizes: '72x72' }
|
||||
-#%link{ href: asset_path('apple-touch-icon-114x114.png'), rel: 'apple-touch-icon', sizes: '114x114' }
|
||||
-#%link{ href: asset_path('apple-touch-icon-144x144.png'), rel: 'apple-touch-icon', sizes: '144x144' }
|
||||
= yield :head
|
||||
|
||||
%body{ class: page_style }
|
||||
@@ -24,8 +22,8 @@
|
||||
- if content_for?(:side_bar)
|
||||
%nav#side-bar
|
||||
= yield :side_bar
|
||||
- flash.each do |key, msg|
|
||||
= content_tag :div, msg, :id => key
|
||||
-# - flash.each do |key, msg|
|
||||
-# = content_tag :div, msg, :id => key
|
||||
%header#banner=yield :banner
|
||||
- if @submenu
|
||||
=row do
|
||||
@@ -39,5 +37,7 @@
|
||||
= yield
|
||||
#footer
|
||||
%footer= render 'shared/footer'
|
||||
- if content_for?(:footer_scripts)
|
||||
= yield :footer_scripts
|
||||
|
||||
= yield :footer_scripts if content_for?(:footer_scripts)
|
||||
- add_inline_script :main
|
||||
= inline_scripts
|
||||
|
||||
@@ -3,74 +3,10 @@
|
||||
%head
|
||||
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
||||
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
|
||||
%title Your Message Subject or Title
|
||||
:css
|
||||
#outlook a {padding:0;}
|
||||
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
|
||||
.ExternalClass {width:100%;}
|
||||
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
|
||||
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
|
||||
img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}
|
||||
a img {border:none;}
|
||||
.image_fix {display:block;max-width:100%}
|
||||
p {margin: 1em;color:#333 !important;}
|
||||
h1, h2, h3, h4, h5, h6 {color:#333 !important;}
|
||||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: #00ADEF !important;}
|
||||
h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active { color: #D89E59 !important; }
|
||||
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited { color: #DD57EF !important; }
|
||||
table td {border-collapse: collapse;}
|
||||
table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; max-width:512px;min-width:280px;}
|
||||
a {color: #00ADEF;}
|
||||
a:link { color: #00ADEF; }
|
||||
a:visited { color: #00ADEF; }
|
||||
a:hover { color: #02CA9E; }
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
a[href^="tel"], a[href^="sms"] {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
|
||||
text-decoration: default;
|
||||
color: #00ADEF !important;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
h3 b {
|
||||
padding: 10px 20px;
|
||||
line-height: 50px;
|
||||
}
|
||||
h3 b a,
|
||||
h3 b a:visited {
|
||||
color: #FFF !important;
|
||||
background-color: #02CA9E;
|
||||
text-decoration: none !important;
|
||||
border-radius: 4px;
|
||||
padding: 10px 15px;
|
||||
margin-left: 20px;
|
||||
border-bottom: 3px solid #00AF88;
|
||||
}
|
||||
h3 b a:hover {
|
||||
background-color: #00AF88;
|
||||
}
|
||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
||||
a[href^="tel"], a[href^="sms"] {
|
||||
text-decoration: none;
|
||||
color: #00ADEF;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
|
||||
text-decoration: default;
|
||||
color: #00ADEF !important;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
%title=@subject
|
||||
%style{type: 'text/css'}=Rails.application.assets.find_asset("user-mailer.css").to_s
|
||||
%body
|
||||
%table#backgroundTable{:border => "0", :cellpadding => "0", :cellspacing => "0"}
|
||||
%table{:border => "0", :cellpadding => "0", :cellspacing => "0", id: @wrapper_id.present? ? "bb_#{@wrapper_id.to_s}" : 'backgroundTable'}
|
||||
%tr
|
||||
%td
|
||||
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0"}
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
%input{type: 'hidden', name: 'item_name', value: 'Bike!Bike!'}
|
||||
%input{type: 'hidden', name: 'no_note', value: '0'}
|
||||
%input{type: 'hidden', name: 'currency_code', value: 'USD'}
|
||||
%button{type: 'submit', value: 'PP-DonationsBF:paypal_logo.png:NonHostedGuest'}=_'donate.button_label','Donate'
|
||||
%button{type: 'submit', value: 'PP-DonationsBF:paypal_logo.png:NonHostedGuest'}
|
||||
%span.title=_'donate.button_label','Donate'
|
||||
|
||||
@@ -1,14 +1,23 @@
|
||||
%nav
|
||||
#main-nav
|
||||
= row(class: 'inner-nav') do
|
||||
- if logged_in?
|
||||
= columns(medium: 12, class: 'user-nav') do
|
||||
.user-nav-bar
|
||||
=link_to (_!current_user.name), register_step_path(@conference.slug, :contact_info), class: 'my-account'
|
||||
=link_to (_'forms.actions.generic.Log_out'), logout_path
|
||||
= columns(medium: 4, class: 'inner-nav') do
|
||||
= link_to '/', :class => 'logo' do
|
||||
= link_to home_path, :class => 'logo' do
|
||||
= svg_sprite('icons', "bb-icon-logo", "Logo")
|
||||
= svg_sprite('icons', "bb-icon-logo-text", "Logo Text")
|
||||
= off_screen _!'Bike Bike'
|
||||
= columns(medium: 8, class: 'nav') do
|
||||
= nav_link about_path, (_'page_titles.About'), 'about'
|
||||
= nav_link policy_path, (_'page_titles.Policy'), 'policy'
|
||||
- if @conference && @conference.registration_open
|
||||
= nav_link register_path(@conference.slug), (_'page_titles.Register')
|
||||
= nav_link :about
|
||||
= nav_link :policy
|
||||
- case (@conference ? @conference.registration_status.to_sym : :closed)
|
||||
- when :pre
|
||||
= nav_link register_path(@conference.slug), :pre_register, :register
|
||||
- when :open
|
||||
= nav_link register_path(@conference.slug), :register
|
||||
- else
|
||||
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address)
|
||||
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address || @conference.organizations.first.email_address)
|
||||
@@ -1,4 +1,8 @@
|
||||
%p=_'email.general.paragraph.thank_you', "Thank you #{@user.firstname},", :vars => {:name => @user.firstname}
|
||||
%p=_'email.registration.paragraph.confirmed', "You have successfully registered for #{@conference.title}. You can modify your registration details, pay, or add workshops at any time by restarting the registration process. If you have yet to pay or add your workshops and plan to do so, we ask that you take care of it as soon as possible to help us prepare in advance of your arrival.", :vars => {:conference_title => @conference.title}
|
||||
|
||||
%p=_'email.general.paragraph.see_you', "See you in #{@conference.location.city}!", :vars => {:conference_location => @conference.location.city}
|
||||
- if @conference.registration_status.to_sym == :pre
|
||||
%p=_'email.general.paragraph.pre_registered', "You have successfully pre-registered for #{@conference.title}. We will let you know when registration is fully open and if there is any important news about the conference that you should know about. We encourage you to create or volunteer to facilitate workshops soon. You can do that, or change your registration details at any time by clicking on the pre-register link again.", :vars => {:conference_title => @conference.title}
|
||||
- else
|
||||
%p=_'email.registration.paragraph.confirmed', :vars => {:conference_title => @conference.title}
|
||||
|
||||
%p=_'email.general.paragraph.see_you', :vars => {:conference_location => @conference.location.city}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
=_'email.general.paragraph.thank_you', "Thank you #{@user.firstname},", :vars => {:name => @user.firstname}
|
||||
|
||||
=_'email.registration.paragraph.confirmed', "You have successfully registered for #{@conference.title}. You can modify your registration details, pay, or add workshops at any time by restarting the registration process. If you have yet to pay or add your workshops and plan to do so, we ask that you take care of it as soon as possible to help us prepare in advance of your arrival.", :vars => {:conference_title => @conference.title}
|
||||
- if @conference.registration_status.to_sym == :pre
|
||||
=_'email.general.paragraph.pre_registered', "You have successfully pre-registered for #{@conference.title}. We will let you know when registration is fully open and if there is any important news about the conference that you should know about. We encourage you to create or volunteer to facilitate workshops soon. You can do that, or change your registration details at any time by clicking on the pre-register link again.", :vars => {:conference_title => @conference.title}
|
||||
- else
|
||||
=_'email.registration.paragraph.confirmed', :vars => {:conference_title => @conference.title}
|
||||
|
||||
=_'email.general.paragraph.see_you', "See you in #{@conference.location.city}!", :vars => {:conference_location => @conference.location.city}
|
||||
=_'email.general.paragraph.see_you', :vars => {:conference_location => @conference.location.city}
|
||||
@@ -1 +0,0 @@
|
||||
Hi, this is a test. Did you get it?
|
||||
@@ -0,0 +1,15 @@
|
||||
%p=_('email.translations.paragraph.workshop_original_content_changed', "#{@translator.name} has modified the original content for #{@workshop.title}. Translations may need to be updated.", vars: {user_name: @translator.firstname, workshop_title: @workshop.title})
|
||||
|
||||
- @data.each do |field, values|
|
||||
%h2=_"forms.labels.generic.#{field.to_s}"
|
||||
%b=_'email.translations.headings.new_value'
|
||||
%blockquote=_!values[:new].html_safe
|
||||
%b=_'email.translations.headings.old_value'
|
||||
%blockquote=_!values[:old].html_safe
|
||||
%b=_'email.translations.headings.diff'
|
||||
=_!(values[:diff][:html].html_safe)
|
||||
|
||||
%p
|
||||
=_'email.workshop.paragraph.view_workshop',"You can view the workshop here: "
|
||||
- workshop_link = view_workshop_url(@workshop.conference.slug, @workshop.id)
|
||||
%a{href: workshop_link}=workshop_link
|
||||
@@ -0,0 +1,25 @@
|
||||
=_('email.translations.paragraph.workshop_translated', "#{@translator.name} has modified the #{@locale_name} translation for #{@workshop.title}.", vars: {user_name: @translator.firstname, language: @locale_name, workshop_title: @workshop.title})
|
||||
|
||||
|
||||
- @data.each do |field, values|
|
||||
=(_!'** ') + (_"forms.labels.generic.#{field.to_s}")
|
||||
=(_!' - ') + (_'email.translations.headings.new_value')
|
||||
=(_!' ------------------------------ ')
|
||||
=_!values[:new]
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=(_!' - ') + (_'email.translations.headings.old_value')
|
||||
=(_!' ------------------------------ ')
|
||||
=_!values[:old]
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=(_!' - ') + (_'email.translations.headings.diff')
|
||||
=(_!' ------------------------------ ')
|
||||
=(_!values[:diff][:text])
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=_'email.workshop.paragraph.view_workshop',"You can view the workshop here: "
|
||||
= view_workshop_url(@workshop.conference.slug, @workshop.id)
|
||||
@@ -0,0 +1,15 @@
|
||||
%p=_('email.translations.paragraph.workshop_translated', "#{@translator.name} has modified the #{@locale_name} translation for #{@workshop.title}.", vars: {user_name: @translator.firstname, language: @locale_name, workshop_title: @workshop.title})
|
||||
|
||||
- @data.each do |field, values|
|
||||
%h2=_"forms.labels.generic.#{field.to_s}"
|
||||
%b=_'email.translations.headings.new_value'
|
||||
%blockquote=_!values[:new].html_safe
|
||||
%b=_'email.translations.headings.old_value'
|
||||
%blockquote=_!values[:old].html_safe
|
||||
%b=_'email.translations.headings.diff'
|
||||
=_!(values[:diff][:html].html_safe)
|
||||
|
||||
%p
|
||||
=_'email.workshop.paragraph.view_workshop',"You can view the workshop here: "
|
||||
- workshop_link = view_workshop_url(@workshop.conference.slug, @workshop.id)
|
||||
%a{href: workshop_link}=workshop_link
|
||||
@@ -0,0 +1,25 @@
|
||||
=_('email.translations.paragraph.workshop_translated', "#{@translator.firstname} has modified the #{@locale_name} translation for #{@workshop.title}.", vars: {user_name: @translator.firstname, language: @locale_name, workshop_title: @workshop.title})
|
||||
|
||||
|
||||
- @data.each do |field, values|
|
||||
=(_!'** ') + (_"forms.labels.generic.#{field.to_s}")
|
||||
=(_!' - ') + (_'email.translations.headings.new_value')
|
||||
=(_!' ------------------------------ ')
|
||||
=_!values[:new]
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=(_!' - ') + (_'email.translations.headings.old_value')
|
||||
=(_!' ------------------------------ ')
|
||||
=_!values[:old]
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=(_!' - ') + (_'email.translations.headings.diff')
|
||||
=(_!' ------------------------------ ')
|
||||
=(_!values[:diff][:text])
|
||||
=(_!' ------------------------------ ')
|
||||
|
||||
|
||||
=_'email.workshop.paragraph.view_workshop',"You can view the workshop here: "
|
||||
= view_workshop_url(@workshop.conference.slug, @workshop.id)
|
||||
@@ -6,14 +6,14 @@
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{workshop.interested_count - 1} others are interested in this workshop", :vars => {:count => (workshop.interested_count - 1)}
|
||||
- else
|
||||
=_'articles.workshops.info.interested_count', "#{workshop.interested_count} people are interested in this workshop", :vars => {:count => workshop.interested_count}
|
||||
- if !preview && workshop.can_show_interest?(current_user)
|
||||
- if preview.blank? && workshop.can_show_interest?(current_user)
|
||||
= form_tag toggle_workshop_interest_path(workshop.conference.slug, workshop.id) do
|
||||
= button_tag (workshop.interested?(current_user) ? :remove_interest : :show_interest), :value => :toggle_interest, :class => (workshop.interested?(current_user) ? 'delete' : 'add')
|
||||
=markdown _!(workshop.info) || ''
|
||||
- if !preview && logged_in? && current_user.can_translate?
|
||||
= button_tag (workshop.interested?(current_user) ? :remove_interest : :show_interest), :value => :toggle_interest, :class => (workshop.interested?(current_user) ? :delete : :add)
|
||||
=_!(workshop.info).html_safe if workshop.info.present?
|
||||
- if preview.blank? && translations_available_for_editing
|
||||
.actions
|
||||
- I18n.backend.enabled_locales.each do |locale|
|
||||
= (link_to (_'actions.workshops.Translate', "Translate into #{language_name(locale)}", :vars => {:language => language_name(locale)}), edit_workshop_url(workshop.conference.slug, workshop.id, url_params(locale)), :class => 'button translate') if workshop.can_translate?(current_user, locale)
|
||||
- translations_available_for_editing.each do |locale|
|
||||
= link_to (_'actions.workshops.Translate', "Translate into #{language_name(locale)}", :vars => {:language => language_name(locale)}), translate_workshop_url(workshop.conference.slug, workshop.id, locale), :class => [:button, :translate]
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.facilitators'
|
||||
.facilitators
|
||||
@@ -21,38 +21,40 @@
|
||||
- u = User.find(f.user_id)
|
||||
- if logged_in? && (workshop.public_facilitator?(u) || f.user_id == current_user.id || workshop.active_facilitator?(current_user))
|
||||
.facilitator
|
||||
.name=_!(u.firstname || u.username || u.email)
|
||||
.name=_!u.name
|
||||
.role
|
||||
=_"roles.workshops.facilitator.#{workshop.role(u).to_s}"
|
||||
- if !preview && f.role.to_sym == :requested && workshop.active_facilitator?(current_user)
|
||||
=(link_to (_'actions.workshops.Approve'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'approve'), :class => 'button modify')
|
||||
=(link_to (_'actions.workshops.Deny'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'deny'), :class => 'button delete')
|
||||
- elsif !preview && (f.user_id == current_user.id && f.role.to_sym != :creator) || (!workshop.conference.registered?(u) && workshop.active_facilitator?(current_user))
|
||||
=(link_to (_'actions.workshops.Remove'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'remove'), :class => 'button delete')
|
||||
- if !preview
|
||||
- if preview.blank? && f.role.to_sym == :requested && workshop.active_facilitator?(current_user)
|
||||
=(link_to (_'actions.workshops.Approve'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'approve'), :class => [:button, :modify])
|
||||
=(link_to (_'actions.workshops.Deny'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'deny'), :class => [:button, :delete])
|
||||
- elsif preview.blank? && (f.user_id == current_user.id && f.role.to_sym != :creator) || (!workshop.conference.registered?(u) && workshop.active_facilitator?(current_user))
|
||||
=(link_to (_'actions.workshops.Remove'), approve_facilitate_workshop_request_path(workshop.conference.slug, workshop.id, f.user_id, 'remove'), :class => [:button, :delete])
|
||||
- unless preview.present?
|
||||
.actions
|
||||
=(link_to (_'actions.workshops.Facilitate'), facilitate_workshop_path(workshop.conference.slug, workshop.id), :class => 'button modify') if !workshop.facilitator?(current_user)
|
||||
=(link_to (_'actions.workshops.Facilitate'), facilitate_workshop_path(workshop.conference.slug, workshop.id), :class => [:button, workshop.needs_facilitators ? :accented : :subdued]) unless workshop.facilitator?(current_user)
|
||||
- if workshop.active_facilitator?(current_user)
|
||||
= form_tag workshop_add_facilitator_path(workshop.conference.slug, workshop.id), :class => 'add-facilitator' do
|
||||
%h4='Add a facilitator'
|
||||
%h4=_'articles.workshops.headings.add_facilitator','Add a facilitator'
|
||||
= form_tag workshop_add_facilitator_path(workshop.conference.slug, workshop.id), :class => 'add-facilitator flex-form' do
|
||||
.email-field.input-field
|
||||
= email_field_tag :email, nil, required: true
|
||||
= label_tag :email
|
||||
= button_tag :add
|
||||
- if workshop.languages
|
||||
- languages = JSON.parse(workshop.languages || '[]')
|
||||
- if languages.present?
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.languages','Workshop Language'
|
||||
%p= _!((JSON.parse(workshop.languages || '[]').map { |x| _"languages.#{x}" }).join(', ').to_s.html_safe)
|
||||
- if workshop.theme
|
||||
%p= _!((languages.map { |x| _"languages.#{x}" }).join(', ').to_s.html_safe)
|
||||
- if workshop.theme.present?
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.theme','Theme'
|
||||
%p= [:race_gender, :mechanics, :funding, :organization, :community].include?((workshop.theme || '').to_sym) ? (_"workshop.options.theme.#{workshop.theme}") : workshop.theme
|
||||
%p= Workshop.all_themes.include?((workshop.theme || '').to_sym) ? (_"workshop.options.theme.#{workshop.theme}") : workshop.theme
|
||||
- if workshop.active_facilitator?(current_user) || workshop.conference.host?(current_user)
|
||||
- if workshop.needs
|
||||
- needs = JSON.parse(workshop.needs || '[]')
|
||||
- if needs.present?
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.needs','What do you need?'
|
||||
%p= _!((JSON.parse(workshop.needs || '[]').map { |x| _"workshop.options.needs.#{x}" }).join(', ').to_s.html_safe)
|
||||
- if workshop.notes
|
||||
%p= _!((needs.map { |x| _"workshop.options.needs.#{x}" }).join(', ').to_s.html_safe)
|
||||
- if workshop.notes.present?
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.notes','Notes'
|
||||
=markdown _!(workshop.notes)
|
||||
=_!(workshop.notes).html_safe
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
- # encoding: utf-8
|
||||
%ul.workshop-previews
|
||||
%ul.workshop-list
|
||||
- workshops.sort_by{ |w| w.title.downcase }.each do |w|
|
||||
- if w.title
|
||||
%li
|
||||
=link_to view_workshop_path(@this_conference.slug, w.id) do
|
||||
%h4=_!(w.title)
|
||||
%p=_!(w.info || '').gsub(/\n\#+(.*?)\r/, "\n<strong>\\1</strong>\r").gsub(/[\t ]*\r\n[\t ]*/, '<br>').html_safe
|
||||
- is_interested = w.interested?(current_user)
|
||||
%li{class: [is_interested ? :interested : nil]}
|
||||
= link_to view_workshop_path(w.conference.slug, w.id) do
|
||||
%h4.title=w.title
|
||||
.workshop-interest
|
||||
- if is_interested
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{w.interested_count - 1} others are interested in this workshop", :vars => {:count => (w.interested_count - 1)}
|
||||
- elsif w.interested_count > 0
|
||||
=_'articles.workshops.info.interested_count', "#{w.interested_count} people are interested in this workshop", :vars => {:count => w.interested_count}
|
||||
.workshop-description=w.info.html_safe
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
= render 'conferences/page_header', :page_key => 'Facilitate_Workshop'
|
||||
= render 'conferences/page_header', :page_key => 'Conference_Registration'
|
||||
|
||||
%article
|
||||
= row do
|
||||
%h2=_'page_titles.conferences.Facilitate_Workshop'
|
||||
= columns(medium: 12) do
|
||||
=m('articles.workshops.paragraphs.facilitate_request_sent','Your request has been sent. You will receive an email once your request is approved or denied or if the current facilitators have any questions.')
|
||||
= columns(medium: 12) do
|
||||
.actions
|
||||
= link_to (_'actions.workshops.View'), view_workshop_url(@this_conference.slug, @workshop.id), :class => 'button'
|
||||
= link_to (_'actions.workshops.View_All'), workshops_url(@this_conference.slug), :class => 'button'
|
||||
= link_to (_'actions.workshops.View_All'), register_step_path(@this_conference.slug, :wokshops), :class => 'button'
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
= render 'conferences/page_header', :page_key => 'Workshops'
|
||||
|
||||
%article
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.workshops.headings.Workshops'
|
||||
= columns(medium: 6) do
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%p=_'articles.workshops.paragraphs.Workshops', :p
|
||||
= columns(medium: 6) do
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.Your_Workshops'
|
||||
= render 'workshops/workshop_previews', :workshops => @my_workshops
|
||||
= link_to (_'actions.workshops.create','New Workshop'), create_workshop_path(@this_conference.slug), class: [:button, :modify] if @conference.registration_open
|
||||
= row do
|
||||
= render 'workshops/workshop_previews', :workshops => @workshops
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.All_Workshops'
|
||||
= render 'workshops/workshop_previews', :workshops => @workshops
|
||||
@@ -1,69 +1,91 @@
|
||||
= render 'conferences/page_header', :page_key => (@workshop ? 'Edit_Workshop' : 'Create_Workshop')
|
||||
- add_stylesheet :editor
|
||||
- add_inline_script :pen
|
||||
- add_inline_script :markdown
|
||||
- add_inline_script :editor
|
||||
|
||||
-#= render 'conferences/page_header', :page_key => (@workshop.id.present? ? 'Edit_Workshop' : 'Create_Workshop')
|
||||
= render 'conferences/page_header', :page_key => 'Conference_Registration'
|
||||
|
||||
%article
|
||||
= row do
|
||||
= form_tag save_workshop_path(@this_conference.slug), class: 'composition' do
|
||||
= (hidden_field_tag :workshop_id, @workshop.id) if @workshop
|
||||
= columns(medium: 12) do
|
||||
=m('articles.workshops.paragraphs.new_workshop','Please accurately describe your workshop in detail. This will help hosts decide if they wish to add it to the schedule and when it should best be scheduled. Enter normal text but if you want to get fancy you can use [Markdown](http://daringfireball.net/projects/markdown/basics).')
|
||||
- if @workshop.id.present?
|
||||
= hidden_field_tag :workshop_id, @workshop.id
|
||||
- if @is_translating
|
||||
%h2=_(@page_title, vars: @page_title_vars)
|
||||
= hidden_field_tag :translation, @translation
|
||||
- else
|
||||
%h2=_@page_title, :t
|
||||
- else
|
||||
%h2=_@page_title, :t
|
||||
.text-field.input-field.big
|
||||
= label_tag :title
|
||||
= text_field_tag :title, @title, :required => true
|
||||
- if @workshop && I18n.locale.to_s != @workshop.locale.to_s
|
||||
= text_field_tag :title, @title, required: true, lang: @translation
|
||||
- if @is_translating
|
||||
.original-text
|
||||
%h4=_'translate.content.Translation_of'
|
||||
.value=@workshop.title!
|
||||
.text-area-field.input-field
|
||||
= label_tag :info
|
||||
= text_area_tag :info, @info, :required => true
|
||||
- if @workshop && I18n.locale.to_s != @workshop.locale.to_s
|
||||
.input-field-help=_'articles.workshops.paragraphs.info', :s, 2
|
||||
.textarea#info{lang: @translation, data: {name: :info}}=(@info || '').html_safe
|
||||
- if @is_translating
|
||||
.original-text
|
||||
%h4=_'translate.content.Translation_of'
|
||||
.value=markdown @workshop.info!
|
||||
- if !@workshop || @can_edit
|
||||
.value=(@workshop.info! || '').html_safe
|
||||
- if !@is_translating && (@workshop.id.blank? || @can_edit)
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.languages','Workshop Language'
|
||||
- [:en, :es, :fr].each do |language|
|
||||
.single-check-box-field.input-field
|
||||
.input-field-help=_'articles.workshops.paragraphs.languages', :s, 2
|
||||
.check-box-field.vertical.input-field
|
||||
- [:en, :es, :fr].each do |language|
|
||||
= check_box_tag "languages[#{language}]", 1, @languages && @languages.include?(language)
|
||||
= label_tag "languages_#{language}" do
|
||||
= check_box_tag "languages[#{language}]", 1, @languages && @languages.include?(language)
|
||||
= _"languages.#{language}"
|
||||
%h3=_'articles.workshops.headings.theme','Theme'
|
||||
.input-field-help=_'articles.workshops.paragraphs.theme', :p
|
||||
.input-field-help=_'articles.workshops.paragraphs.theme', :s, 2
|
||||
- theme_found = false
|
||||
- [:race_gender, :mechanics, :funding, :organization, :community].each do |theme|
|
||||
.single-radio-button-field.input-field
|
||||
.check-box-field.vertical.input-field
|
||||
- Workshop.all_themes.each do |theme|
|
||||
- is_selected = (@workshop.theme.to_s == theme.to_s)
|
||||
- theme_found ||= is_selected
|
||||
= radio_button_tag :theme, theme, is_selected
|
||||
= label_tag "theme_#{theme}" do
|
||||
- is_selected = (@theme == theme)
|
||||
- theme_found ||= is_selected
|
||||
= radio_button_tag :theme, theme, is_selected
|
||||
= _"workshop.options.theme.#{theme}"
|
||||
.single-radio-button-field.other-field.input-field
|
||||
- is_other = (@workshop.theme.present? && !theme_found)
|
||||
= radio_button_tag :theme, :other, is_other
|
||||
= label_tag "theme_other" do
|
||||
= radio_button_tag :theme, :other, (@theme && !theme_found)
|
||||
%div
|
||||
= _"workshop.options.theme.other"
|
||||
= text_field_tag :other_theme, (@theme && !theme_found ? @theme : nil)
|
||||
.other
|
||||
= text_field_tag :other_theme, (is_other ? @workshop.theme : nil), placeholder: (_"workshop.options.theme.other"), required: is_other
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.needs','What do you need?'
|
||||
- [:sound, :projector, :tools].each do |need|
|
||||
.single-check-box-field.input-field
|
||||
.input-field-help=_'articles.workshops.paragraphs.needs', :s, 2
|
||||
.check-box-field.vertical.input-field
|
||||
- [:sound, :projector, :tools].each do |need|
|
||||
= check_box_tag "needs[#{need.to_s}]", 1, JSON.parse(@workshop.needs || '[]').include?(need.to_s)
|
||||
= label_tag "needs_#{need}" do
|
||||
= check_box_tag "needs[#{need}]", 1, @needs.include?(need)
|
||||
= _"workshop.options.needs.#{need}"
|
||||
= _"workshop.options.needs.#{need.to_s}"
|
||||
%h3=_'articles.workshops.headings.space','Type of space'
|
||||
.input-field-help=_'articles.workshops.paragraphs.space', :p
|
||||
- [:meeting_room, :workshop, :outdoor_meeting].each do |space|
|
||||
.single-radio-button-field.input-field
|
||||
.input-field-help=_'articles.workshops.paragraphs.space', :s, 2
|
||||
.check-box-field.vertical.input-field
|
||||
- [:meeting_room, :workshop, :outdoor_meeting].each do |space|
|
||||
= radio_button_tag :space, space, @workshop.space == space
|
||||
= label_tag "space_#{space}" do
|
||||
= radio_button_tag :space, space, @space == space
|
||||
= _"workshop.options.space.#{space}"
|
||||
%h3=_'articles.workshops.headings.needs_facilitators','Looking for help?'
|
||||
.input-field-help=_'articles.workshops.paragraphs.needs_facilitators', :s, 2
|
||||
.check-box-field.vertical.input-field
|
||||
= check_box_tag :needs_facilitators, 1, @workshop.needs_facilitators
|
||||
= label_tag :needs_facilitators do
|
||||
= _'workshop.options.needs_facilitators', 'Needs Additional Facilitators'
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.notes','Notes for Conference Organizers and Workshop Facilitators'
|
||||
%p=_'articles.workshops.paragraphs.notes','Notes are only viewable by conference hosts and workshop facilitators'
|
||||
.text-area-field.input-field
|
||||
= label_tag :notes
|
||||
= text_area_tag :notes, @notes
|
||||
.warning-info=_'articles.workshops.paragraphs.notes','Notes are only viewable by conference hosts and workshop facilitators'
|
||||
.textarea#notes{data: {name: :notes}}=(@workshop.notes || '').html_safe
|
||||
= columns(medium: 12) do
|
||||
.actions.right
|
||||
= button_tag :save, :value => :save
|
||||
.actions.next-prev
|
||||
= button_tag :save, value: :save
|
||||
= button_tag :cancel, value: :cancel, class: :subdued, formnovalidate: true
|
||||
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
= render 'conferences/page_header', :page_key => 'View_Workshop'
|
||||
= render 'conferences/page_header', :page_key => 'Conference_Registration'
|
||||
|
||||
= 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, :workshops == step[:name] ? :current : nil]}
|
||||
- if step[:enabled]
|
||||
.step= link_to text, register_step_path(@this_conference.slug, step[:name])
|
||||
- else
|
||||
.step= text
|
||||
|
||||
%article
|
||||
= render 'workshops/show', :workshop => @workshop, :preview => false
|
||||
= render 'workshops/show', :workshop => @workshop, :translations_available_for_editing => @translations_available_for_editing, :preview => false
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
.actions.right
|
||||
= (link_to (_'actions.workshops.Edit'), edit_workshop_path(@this_conference.slug, @workshop.id), :class => 'button modify') if @workshop.can_edit?(current_user)
|
||||
= (link_to (_'actions.workshops.Edit'), edit_workshop_path(@this_conference.slug, @workshop.id), :class => [:button, :modify]) if @workshop.can_edit?(current_user)
|
||||
= (link_to (_'actions.workshops.Delete'), delete_workshop_path(@this_conference.slug, @workshop.id), :class => 'button delete') if @workshop.can_delete?(current_user)
|
||||
|
||||
Reference in New Issue
Block a user