Added post-conference survey
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
= render :partial => 'application/header', :locals => {:image_file => @banner_image || '403.jpg'}
|
||||
= render partial: 'application/header', locals: {image_file: @banner_image || '403.jpg'}
|
||||
%article
|
||||
- if @template.present?
|
||||
=render @template
|
||||
@@ -6,5 +6,9 @@
|
||||
= row do
|
||||
= columns do
|
||||
%h2=_'error.403.title','Sorry, you currently don\'t have access to this page'
|
||||
%p=_'error.403.description', :p
|
||||
= render 'contact', cancel_btn: false, contact_reason: :website
|
||||
- if logged_in?
|
||||
%p=_'error.403.description', :p
|
||||
= render 'contact', cancel_btn: false, contact_reason: :website
|
||||
- else
|
||||
%p=_'error.403.not_logged_in', :p
|
||||
= render "application/login"
|
||||
@@ -10,8 +10,12 @@
|
||||
- if conference.start_date.present? && conference.end_date.present?
|
||||
.secondary
|
||||
= date_span(conference.start_date.to_date, conference.end_date.to_date)
|
||||
- if conference.poster.present? && links.include?(:register) && conference.can_register?
|
||||
- if conference.poster.present? && links.include?(:register) && conference.can_register?(current_user)
|
||||
.register-link
|
||||
- unless logged_in?
|
||||
.access-registration
|
||||
= _'actions.conference.already_registered'
|
||||
= link_to (_'actions.conference.access_registration'), register_path(conference.slug)
|
||||
= (link_to _(is_registered ? 'actions.conference.edit_registration' : 'forms.actions.generic.register'), register_path(conference.slug), class: [:button, :register])
|
||||
- if conference.poster.present?
|
||||
%figure
|
||||
@@ -23,7 +27,7 @@
|
||||
= richtext conference.info
|
||||
|
||||
.links
|
||||
= (link_to (_(is_registered ? 'actions.conference.edit_registration' : 'forms.actions.generic.register')), register_path(conference.slug), class: [:button, :register]) if links.include?(:register) && conference.can_register?
|
||||
= (link_to (_(is_registered ? 'actions.conference.edit_registration' : 'forms.actions.generic.register')), register_path(conference.slug), class: [:button, :register]) if links.include?(:register) && conference.can_register?(current_user)
|
||||
= (link_to (_'articles.workshops.info.read_more'), conference_path(conference.slug), class: :button) if links.include?(:read_more)
|
||||
= (link_to (_'forms.actions.generic.administrate'), administrate_conference_path(conference.slug), class: [:button]) if links.include?(:administrate)
|
||||
= (link_to (_'forms.actions.generic.edit'), edit_conference_path(conference.slug), class: [:button, :subdued]) if links.include?(:edit)
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
= render partial: 'conferences/page_header', locals: {page_key: 'Conference_Survey'}
|
||||
- if @warnings.present?
|
||||
= row class: 'warnings', tag: :ul do
|
||||
- @warnings.each do |warning|
|
||||
= columns tag: :li, class: 'warning-info' do
|
||||
= warning
|
||||
%article
|
||||
- if !@registration.checked_in?
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_"articles.conference_survey.headings.post_conference", :t
|
||||
%p=_"articles.conference_survey.paragraphs.post_conference_not_checked_in", :p
|
||||
- elsif @registration.survey_taken
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_"articles.conference_survey.headings.post_conference", :t
|
||||
%p=_"articles.conference_survey.paragraphs.post_conference_taken", :p
|
||||
- else
|
||||
= form_tag conference_survey_save_path(@this_conference.slug) do
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_"articles.conference_survey.headings.post_conference", :t
|
||||
%p=_"articles.conference_survey.paragraphs.post_conference", :p
|
||||
= textfield :email, nil, required: true, big: true unless logged_in?
|
||||
%ol.survey
|
||||
- @this_conference.post_conference_survey_questions.each do |name, question|
|
||||
%li
|
||||
%header
|
||||
%p= _"articles.conference_survey.paragraphs.#{name}", :p
|
||||
.question-details
|
||||
- case question[:type]
|
||||
- when :open_ended
|
||||
.open-ended= textarea name, nil, plain: true, short: true, label: false, class: question[:comment_size]
|
||||
- when :multi_likert
|
||||
- options = question[:options].to_a
|
||||
- options << question[:waive_option] if question[:waive_option].present?
|
||||
.table.responsive-table.likert
|
||||
.table-thead.medium-up
|
||||
.table-tr
|
||||
.table-th.corner
|
||||
- options.each do |option|
|
||||
.table-th{id: "#{name}-option-#{option}"}=_("articles.conference_survey.likert.#{option}")
|
||||
.table-tbody
|
||||
- question[:questions].each do |q|
|
||||
.table-tr
|
||||
.table-th{id: "#{name}-question-#{q}"}=_("articles.conference_survey.questions.#{q}")
|
||||
- options.each do |option|
|
||||
.table-td
|
||||
=label_tag do
|
||||
=radio_button_tag "#{name}_#{q}", option, aria: { labelledby: "#{name}-question-#{q} #{name}-option-#{option}" }
|
||||
%span.small-only=_("articles.conference_survey.likert.#{option}")
|
||||
- when :likert
|
||||
- options = question[:options].to_a
|
||||
- options << question[:waive_option] if question[:waive_option].present?
|
||||
- is_numerical = question[:options].is_a?(Range)
|
||||
%fieldset.likert
|
||||
- options.each do |option|
|
||||
= label_tag do
|
||||
= radio_button_tag name, option
|
||||
= _("articles.conference_survey.likert.#{option}")
|
||||
- if question[:comment].present?
|
||||
.comment
|
||||
= textarea "#{name}_comment", nil, label: "articles.conference_survey.comment.#{question[:comment] == true ? 'default' : question[:comment]}", plain: true, short: true
|
||||
|
||||
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%p=_"articles.conference_survey.paragraphs.post_conference_submit", :p
|
||||
.actions.center
|
||||
= button :submit
|
||||
@@ -1,3 +1,10 @@
|
||||
- if @allow_survey
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_survey.headings.post_conference', :t
|
||||
%p=_'articles.conference_survey.paragraphs.post_conference', :p
|
||||
.actions.centered
|
||||
= link_to (_'actions.conference_registration.take_survey'), conference_survey_path(@this_conference), class: [:button, :modify]
|
||||
= registration_step_header
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
@@ -9,7 +16,7 @@
|
||||
.table-tr
|
||||
.table-th
|
||||
=_"articles.conference_registration.step_names.#{step}"
|
||||
= button :edit, name: :edit_step, value: step, class: [:unstyled, :edit]
|
||||
= button :edit, name: :edit_step, value: step, class: [:unstyled, :edit] if @this_conference.registration_open
|
||||
.table-td
|
||||
- case data[:type]
|
||||
- when :bool
|
||||
@@ -32,7 +39,7 @@
|
||||
- else
|
||||
= value.html_safe
|
||||
- else
|
||||
%p.centered=_'articles.conference_registration.paragraphs.registration_cancelled', :p
|
||||
%p=_'articles.conference_registration.paragraphs.registration_cancelled', :p
|
||||
- if @allow_cancel_attendance
|
||||
.actions.centered
|
||||
= button :cancel_registration, value: :cancel_registration, class: :red
|
||||
@@ -70,17 +77,18 @@
|
||||
%td{colspan: 3, lang: guest.user.locale.to_s == I18n.locale.to_s ? nil : guest.user.locale}
|
||||
= paragraph guest.housing_data['other']
|
||||
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.Workshops', :t
|
||||
- if @this_conference.workshop_info.present?
|
||||
= richtext @this_conference.workshop_info
|
||||
- else
|
||||
%p=_'articles.conference_registration.paragraphs.workshops', :p
|
||||
.actions.centered
|
||||
.buttons
|
||||
= 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]
|
||||
- if @this_conference.registration_open
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.Workshops', :t
|
||||
- if @this_conference.workshop_info.present?
|
||||
= richtext @this_conference.workshop_info
|
||||
- else
|
||||
%p=_'articles.conference_registration.paragraphs.workshops', :p
|
||||
.actions.centered
|
||||
.buttons
|
||||
= 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]
|
||||
- if @my_workshops.present?
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
|
||||
Reference in New Issue
Block a user