Sha256: 5a819b0608c821e628fd296576d60d07ab27c3ff7064a5ea125e7b97fa0336ad

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

- if HackathonManager.field_enabled?(:why_attend)
  %p
    %b Why #{HackathonConfig['name']}?
  %p= @questionnaire.why_attend.presence || "(not provided)"
%p
  %b Experience:
  = Questionnaire::POSSIBLE_EXPERIENCES[@questionnaire.experience]
%p
  %b Portfolio link:
  = @questionnaire.portfolio_url? ? link_to(@questionnaire.portfolio_url, @questionnaire.portfolio_url, target: '_blank') : 'Not provided'
%p
  %b GitHub/BitBucket link:
  = @questionnaire.vcs_url? ? link_to(@questionnaire.vcs_url, @questionnaire.vcs_url, target: '_blank') : 'Not provided'
%p
  %b Resume:
  = @questionnaire.resume? ? link_to("Download »".html_safe, @questionnaire.resume.url) : 'Not provided'
%p
  %b Traveling from:
  = @questionnaire.travel_not_from_school ? "Somewhere else (#{@questionnaire.travel_location})" : "My school (#{@questionnaire.school.full_name})"

%fieldset
  - if @questionnaire.user.provider == 'mlh'
    %legend Provided by My MLH
  %p
    %b First name:
    = @questionnaire.first_name
  %p
    %b Last name:
    = @questionnaire.last_name
  %p
    %b Email:
    = @questionnaire.email
  %p
    %b Phone:
    = @questionnaire.phone
  %p
    %b Date of birth:
    = @questionnaire.date_of_birth_formatted
  %p
    %b Gender:
    = @questionnaire.gender
  %p
    %b School:
    = @questionnaire.school.full_name
  %p
    %b Major:
    = @questionnaire.major
  %p
    %b Level of study:
    = @questionnaire.level_of_study
  %p
    %b Shirt size:
    = @questionnaire.shirt_size
  %p
    %b Dietary restrictions
    = @questionnaire.dietary_restrictions || "<i>(none)</i>".html_safe
  %p
    %b Special needs
    = @questionnaire.special_needs || "<i>(none)</i>".html_safe

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hackathon_manager-0.14.1 app/views/application/_questionnaire_summary.html.haml
hackathon_manager-0.14.0 app/views/application/_questionnaire_summary.html.haml