- content_for :javascript do
  :javascript
    $(function() {
      $('#nick').focus();
    });

- title t('.title')

%noscript
  .alert.alert-error
    != t '.nojs', link: link_to(t('.noscript'), "http://noscript.net/")

= form_tag sessions_path, class: 'form-horizontal' do
  .control-group
    %label(for='nick' class='control-label')
      = User.human_attribute_name (FoodsoftConfig[:use_nick] ? :user : :email)
    .controls
      = text_field_tag 'nick', nil, autocapitalize: 'off', autocorrect: 'off'

  .control-group
    %label(for='password' class='control-label')
      = User.human_attribute_name :password
    .controls
      = password_field_tag 'password', nil, autocapitalize: 'off', autocorrect: 'off'

  .control-group
    .controls
      = submit_tag t('.login'), class: 'btn'
      = link_to t('.forgot_password'), forgot_password_path
