- if domain_account.heroku?
  ' Login with Heroku
  = link_to( image_tag('heroku-logo.png', alt: 'Login with heroku'), Heroku.sso_url(domain_account))
- else
  div style=("display:#{params[:request_password_reset] ? 'none' : 'block'}")
    = semantic_form_for @session, html: { method: :post }, url:provider_sessions_path do |f|
      = f.inputs class: 'inputs' do
        = f.input :username, label: 'Email or Username', input_html: { value: params[:username], name: 'username', tabindex: 1, autofocus: (params[:username] ? false : true) }
        = f.input :password, input_html: { name: 'password', tabindex: 2, autofocus: (params[:username] ? true : false) }
        = f.input :remember_me, as: :hidden, input_html: { value: 'true' }

      = f.buttons do
        li.commit
          = submit_tag 'Sign in', class: 'important-button'

  = render 'request_password_reset_form'
