Contact us page and popup
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
= form_tag contact_send_path do
|
||||
= emailfield :email, nil, big: true, required: true unless logged_in?
|
||||
= contact_reason_select
|
||||
= textfield :subject, nil, required: true, big: true
|
||||
= textarea :message, nil, required: true, plain: true
|
||||
.actions
|
||||
= button_tag :send, value: :send
|
||||
- if cancel_btn
|
||||
%button.close.subdued=_'forms.actions.generic.cancel'
|
||||
@@ -0,0 +1,10 @@
|
||||
= render :partial => 'application/header', :locals => {:image_file => @banner_image || 'grafitti.jpg'}
|
||||
%article
|
||||
= row do
|
||||
= columns do
|
||||
- if @sent
|
||||
%h2=_'articles.contact.headings.sent', :t
|
||||
%p=_'articles.contact.paragraphs.sent', :p
|
||||
- else
|
||||
%h2=_'articles.contact.headings.contact'
|
||||
= render 'contact', cancel_btn: false
|
||||
@@ -1,72 +1,13 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.Registration_Info','Registration Info'
|
||||
= columns(medium: 5, large: 4) do
|
||||
%h2=_'articles.conference_registration.headings.Registration_Info'
|
||||
= columns(medium: 12) do
|
||||
%p=_'articles.conference_registration.paragraphs.Registration_Info', :p
|
||||
= columns(medium: 7, large: 8) do
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
%h3=_'articles.conference_registration.headings.name','What is your name?'
|
||||
.text-field.input-field
|
||||
= 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
|
||||
= label_tag :location
|
||||
= text_field_tag :location, @registration.city, required: true
|
||||
%h3=_'articles.conference_registration.headings.arrival_and_departure','How long do you plan to spend in the area?'
|
||||
.date-span.input-field
|
||||
.date-labels
|
||||
= label_tag :arrival
|
||||
= label_tag :departure
|
||||
.date-field.input-field
|
||||
= datetime_local_field_tag :arrival, @registration.arrival.strftime("%Y-%m-%dT%T")
|
||||
= datetime_local_field_tag :departure, @registration.departure.strftime("%Y-%m-%dT%T")
|
||||
%h3=_'articles.conference_registration.headings.languages','Which languages do you speak?'
|
||||
.check-box-field.input-field
|
||||
- [:en, :es, :fr].each do |language|
|
||||
= check_box_tag "languages[#{language}]", 1, @languages.include?(language)
|
||||
= label_tag "languages_#{language}" do
|
||||
= _"languages.#{language}"
|
||||
%h3=_'articles.conference_registration.headings.housing','Do you need a place to stay?'
|
||||
.radio-button-field.input-field
|
||||
- [:none, :tent, :house].each do |option|
|
||||
= radio_button_tag :housing, option, (@registration.housing || '').to_sym == option, required: true
|
||||
= label_tag "housing_#{option}" do
|
||||
- option_name = _"articles.conference_registration.questions.housing.#{option}"
|
||||
= svg_sprite('icons', "bb-#{option}", option_name)
|
||||
= option_name
|
||||
%h3=_'articles.conference_registration.headings.bike','Do you need a bike?'
|
||||
.radio-button-field.input-field
|
||||
- [:none, :small, :medium, :large].each do |option|
|
||||
= radio_button_tag :bike, option, (@registration.bike || '').to_sym == option, required: true
|
||||
= label_tag "bike_#{option}" do
|
||||
- option_name = _"articles.conference_registration.questions.bike.#{option}"
|
||||
= svg_sprite('icons', "bb-#{option == :none ? :none : :bike}", option_name)
|
||||
= option_name
|
||||
%h3=_'articles.conference_registration.headings.food','What are your eating habits?'
|
||||
.radio-button-field.input-field
|
||||
= radio_button_tag :food, :meat, (@registration.food || '').to_sym == :meat, required: true
|
||||
= label_tag :food_meat do
|
||||
- option_name = _"articles.conference_registration.questions.food.meat"
|
||||
= svg_sprite('icons', 'bb-meat', option_name)
|
||||
= option_name
|
||||
= radio_button_tag :food, :vegetarian, (@registration.food || '').to_sym == :vegetarian, required: true
|
||||
= label_tag :food_vegetarian do
|
||||
- option_name = _"articles.conference_registration.questions.food.vegetarian"
|
||||
= svg_sprite('icons', 'bb-meat', 'meat')
|
||||
= svg_sprite('icons', 'bb-none', option_name)
|
||||
= option_name
|
||||
= radio_button_tag :food, :vegan, (@registration.food || '').to_sym == :vegan, required: true
|
||||
= label_tag :food_vegan do
|
||||
- option_name = _"articles.conference_registration.questions.food.vegan"
|
||||
= svg_sprite('icons', 'bb-milk', 'milk')
|
||||
= svg_sprite('icons', 'bb-none', option_name)
|
||||
= option_name
|
||||
%h3=_'articles.conference_registration.headings.allergies','Do you have any allergies?'
|
||||
.text-field.input-field
|
||||
= label_tag :allergies
|
||||
= text_field_tag :allergies, @registration.allergies
|
||||
%h3=_'articles.conference_registration.headings.other','Anything else we should know about your visit?'
|
||||
.select-field.input-field
|
||||
= label_tag :other
|
||||
= text_area_tag :other, @registration.other
|
||||
= form_tag register_path(@this_conference.slug) do
|
||||
= columns(medium: 12) do
|
||||
= radiobuttons :housing, ConferenceRegistration.all_housing_options, @registration.housing, 'articles.conference_registration.questions.housing', heading: 'articles.conference_registration.headings.housing', vertical: true, big: true, inline: true
|
||||
= radiobuttons :bike, ConferenceRegistration.all_bike_options, @registration.bike, 'articles.conference_registration.questions.bike', heading: 'articles.conference_registration.headings.bike', inline: true, big: true
|
||||
= radiobuttons :food, ConferenceRegistration.all_food_options, @registration.food, 'articles.conference_registration.questions.food', heading: 'articles.conference_registration.headings.food', inline: true, big: true
|
||||
= columns(medium: 12) do
|
||||
= textfield :allergies, @registration.allergies, heading: 'articles.conference_registration.headings.allergies'
|
||||
= textarea :other, @registration.other, plain: true, heading: 'articles.conference_registration.headings.other'
|
||||
= button_tag :register, :value => :save
|
||||
|
||||
@@ -40,36 +40,39 @@
|
||||
= yield
|
||||
#footer
|
||||
%footer= render 'shared/footer'
|
||||
- if @confirmation_dlg.present? || @info_dlg.present? || @login_dlg.present?
|
||||
#content-overlay
|
||||
#overlay
|
||||
- if @confirmation_dlg.present?
|
||||
.dlg#confirmation-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'modals.confirm'
|
||||
.dlg-inner
|
||||
%p.message=''
|
||||
%a.button.confirm=_'modals.yes_button'
|
||||
%button.delete.close=_'modals.no_button'
|
||||
- if @info_dlg.present?
|
||||
.dlg#info-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'modals.info'
|
||||
.dlg-inner
|
||||
%p.message=''
|
||||
%button.close=_'modals.done_button'
|
||||
- if @login_dlg.present?
|
||||
.dlg#login-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'forms.actions.generic.login'
|
||||
.dlg-inner
|
||||
= form_tag do_confirm_path, class: 'flex-form' do
|
||||
= hidden_field_tag :dest, settings_path
|
||||
= emailfield :email, nil, big: true
|
||||
= button_tag :continue, :value => :confirm_email
|
||||
.flex-form
|
||||
= link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(provider: :facebook, dest: settings_path), class: [:button, :facebook]
|
||||
%button.close.subdued=_'forms.actions.generic.cancel'
|
||||
#content-overlay
|
||||
#overlay
|
||||
.dlg#contact-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'articles.contact.headings.contact'
|
||||
.dlg-inner= render 'contact', cancel_btn: true
|
||||
- if @confirmation_dlg.present?
|
||||
.dlg#confirmation-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'modals.confirm'
|
||||
.dlg-inner
|
||||
%p.message=''
|
||||
%a.button.confirm=_'modals.yes_button'
|
||||
%button.delete.close=_'modals.no_button'
|
||||
- if @info_dlg.present?
|
||||
.dlg#info-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'modals.info'
|
||||
.dlg-inner
|
||||
%p.message=''
|
||||
%button.close=_'modals.done_button'
|
||||
- if @login_dlg.present?
|
||||
.dlg#login-dlg
|
||||
.dlg-content
|
||||
%h2.title=_'forms.actions.generic.login'
|
||||
.dlg-inner
|
||||
= form_tag do_confirm_path, class: 'flex-form' do
|
||||
= hidden_field_tag :dest, settings_path
|
||||
= emailfield :email, nil, big: true
|
||||
= button_tag :continue, :value => :confirm_email
|
||||
.flex-form
|
||||
= link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(provider: :facebook, dest: settings_path), class: [:button, :facebook]
|
||||
%button.close.subdued=_'forms.actions.generic.cancel'
|
||||
|
||||
= yield :footer_scripts if content_for?(:footer_scripts)
|
||||
= inline_scripts
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
.facebook
|
||||
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
|
||||
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
|
||||
=svg_sprite 'icons', 'bb-icon-fb', 'facebook logo'
|
||||
.github
|
||||
=svg_sprite 'icons', 'bb-icon-github', 'github logo'
|
||||
%a{href: 'https://github.com/bikebike/BikeBike/issues', target: :_blank}
|
||||
=_'links.footer.text.File_an_Issue'
|
||||
=_!'|'
|
||||
%a{href: 'https://github.com/bikebike/BikeBike', target: :_blank}
|
||||
=_'links.footer.text.Help_contribute'
|
||||
.external
|
||||
.facebook
|
||||
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
|
||||
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
|
||||
=svg_sprite 'icons', 'bb-icon-fb', 'facebook logo'
|
||||
.github
|
||||
%a{href: 'https://github.com/bikebike/BikeBike', target: :_blank}
|
||||
= off_screen(_'links.footer.text.Help_contribute')
|
||||
= svg_sprite 'icons', 'bb-icon-github', 'github logo'
|
||||
.user-controls
|
||||
- if logged_in?
|
||||
= link_to (_!current_user.name), settings_path, class: 'my-account'
|
||||
= _!' | '
|
||||
= link_to (_'forms.actions.generic.Log_out'), logout_path, class: 'logout'
|
||||
- else
|
||||
= signin_link
|
||||
%ul.locales
|
||||
- @alt_lang_urls.each do |locale, url|
|
||||
%li
|
||||
@@ -16,13 +21,7 @@
|
||||
%a{href: url, lang: locale}
|
||||
=_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale if locale != I18n.locale.to_s
|
||||
.site-info
|
||||
.user-controls
|
||||
- if logged_in?
|
||||
= link_to (_!current_user.name), settings_path, class: 'my-account'
|
||||
= _!' | '
|
||||
= link_to (_'forms.actions.generic.Log_out'), logout_path
|
||||
- else
|
||||
= signin_link
|
||||
.contact-us=link_to (_'links.footer.help_text.contact'), contact_path, id: 'contact-link'
|
||||
.copy
|
||||
=_'links.footer.help_text.contributors', 'Who contributed to building this website' do |title|
|
||||
=link_to :humans_txt, {title: title} do
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 From
|
||||
%p=@from.is_a?(User) ? @from.named_email : @from
|
||||
|
||||
%h1 Message
|
||||
%blockquote=markdown(@message)
|
||||
@@ -0,0 +1,46 @@
|
||||
%h1 From
|
||||
%table.error-report
|
||||
%tr
|
||||
%th Key
|
||||
%th Value
|
||||
%tr
|
||||
%td User ID
|
||||
%td=@from.is_a?(User) ? @from.id : ''
|
||||
%tr
|
||||
%td User Name
|
||||
%td=@from.is_a?(User) ? @from.name : ''
|
||||
%tr
|
||||
%td User Email
|
||||
%td=@from.is_a?(User) ? @from.email : @from
|
||||
%tr
|
||||
%td IP Address
|
||||
%td=@request.remote_ip
|
||||
%tr
|
||||
%td UUID
|
||||
%td=@request.uuid
|
||||
%tr
|
||||
%td URL
|
||||
%td=@request.original_url
|
||||
|
||||
%h1 Message
|
||||
%blockquote=markdown(@message)
|
||||
|
||||
%h1 Params
|
||||
%table.error-report
|
||||
%tr
|
||||
%th Key
|
||||
%th Value
|
||||
- @params.each do | key, value |
|
||||
%tr
|
||||
%td=key.to_s
|
||||
%td=value.to_s
|
||||
|
||||
%h1 Request Environment
|
||||
%table.error-report
|
||||
%tr
|
||||
%th Key
|
||||
%th Value
|
||||
- @request.env.each do | key, value |
|
||||
%tr
|
||||
%td=key.to_s
|
||||
%td=value.to_s
|
||||
Reference in New Issue
Block a user