.modal-header
.modal-close
= link_to '', '#', class: 'close-dialog', data: {dismiss: :modal}
h4.pb10 Existing User Sign In
.modal-body.text-center.iconset.p30
= simple_form_for User.new, as: :session, validate: true, turboboost: true, url: sessions_path, html: {class: 'js-login-form', id: 'new_session'} do |f|
- if session[:tutoring_session]
= flash_container(:alert, 'Please login or signup to complete your booking process.')
= f.input :email, label: false, validate: {uniqueness: false}
= f.input :password, label: false, validate: {presence: true, length: false}
.clearfix
= f.button :submit, "Login", class: 'js-submit-login tutor-btn-login txt-log'
.box_rememberme
= f.check_box :remember_me, value: 1, checked: params[:remember_me], class: 'checker'
.label_checker
| Remember me
= link_to 'Forgot your password?', new_password_path, class: 'label_forgotpass', data: {refresh: :modal, target: '#remote-modal'}
.clearfix
.deepline-gw.mt20.mb20
.or-txt
| OR
.clearfix
.log-social-link
.mtb10.fs12.semibold
| Login with
.pull-left.mr10
= link_to '', auth_at_provider_path(:provider => :facebook, :type => Student.model_name.human.downcase), class: 'circle-fb white'
.pull-left
= link_to '', auth_at_provider_path(:provider => :linkedin, :type => Student.model_name.human.downcase), class: 'circle-in white'
.clearfix
.align-center.pad10.mt20.mb20.hide
= link_to signup_path(type: Student.model_name.human.downcase), class: 'bx-regis' do
= "#{Student.model_name.human} Sign Up"