app/views/calumnis/edit_profile.html.haml
/ image, username, major, graduation data, prior work experience, options
-# edit portrait
-# username
-# major
-# graduation data
-# prior work experience
.container
.row
= bootstrap_form_for(@people,url: update_profile_path) do |f|
= f.file_field :avatar
= f.text_area :description
= f.select(:major, options_for_select([['EECS'],['CS'],['BIO'],['Biology']]))
= f.date_field :start_date
= f.date_field :graduation_date
- if params[:become_mentor]||@people.first.role=="mentor"
%hr
%h4 Mentor information
%h6 Fill out additional information about yourself and where you work to become a mentor for other UC Berkeley students
= f.text_field :company, label: "Company", id: "company_search",autocomplete:"off", :required=>"true",:oninvalid=>"this.setCustomValidity('Fill this to become a mentor')",:oninput=>"this.setCustomValidity('')"
= f.text_field :position,id: "position_search",autocomplete:"off",:required=>"true",:oninvalid=>"this.setCustomValidity('Fill this to become a mentor')",:oninput=>"this.setCustomValidity('')"
= f.collection_check_boxes :helpability, People.all_helps, :downcase, :downcase,:label=>'Willing to help with' do |cb|
= cb.label id:"helps_#{cb}" do
=cb.text
= f.text_area :open_advice ,label:"General advice"
= f.file_field :resume
= f.submit "Update"