foodsoft/app/views/sessions/new.html.haml

32 lines
887 B
Text
Raw Normal View History

- content_for :javascript do
:javascript
2011-05-11 15:24:34 +02:00
$(function() {
$('#nick').focus();
});
2013-02-04 01:46:07 +01:00
- title t('.title')
.lead= FoodsoftConfig[:name]
2011-05-11 15:24:34 +02:00
%noscript
.alert.alert-error
2013-02-04 01:46:07 +01:00
!= t '.nojs', link: link_to(t('.noscript'), "http://noscript.net/")
= form_tag sessions_path, class: 'form-horizontal' do
.control-group
2013-10-30 21:28:35 +01:00
%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
2013-10-30 21:28:35 +01:00
%label(for='password' class='control-label')
= User.human_attribute_name :password
.controls
= password_field_tag 'password', nil, autocapitalize: 'off', autocorrect: 'off'
.control-group
.controls
2013-02-04 01:46:07 +01:00
= submit_tag t('.login'), class: 'btn'
= link_to t('.forgot_password'), forgot_password_path