.editbox.education-edit-popover
#personal_info_row.col-sm-12.no-padding
= simple_form_for @user, url: settings_path, turboboost: true, validate: true, html: { class: "tutor_update_form", id: 'edit_personal_details' } do |f|
= hidden_field_tag :type, 'popover'
= hidden_field_tag :form_type, 'education_first'
.row
= f.fields_for :educations, [f.object.educations.first] do |e|
.col-sm-12
= e.input :end_date, start_year: Date.today.year, end_year: Date.today.year + 5, as: :date, discard_day: true, discard_month: true, label: "Graduation Year", wrapper_html: {class: 'div-rpad-sel'}, input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Graduation Year' }
.col-sm-12
= e.input :field_of_study, placeholder: 'Major',input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Major' }
.col-sm-12
= e.input :minor, placeholder: 'Minor',input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'Minor' }
.col-sm-12
= e.input :school_name, placeholder: 'School Name',input_html: {data: {toggle: 'tooltip', placement: 'left'}, title: 'School Name' }
.col-sm-12
.col-sm-6
button.btn.btn-default.mb10
.fa.fa-save
.inline
| Save
.col-sm-6
.btn.btn-default.mb10 data-dismiss='popover'
.fa.fa-times.pr5
.inline
| Cancel
.vspace25