2012-10-08 11:51:56 +02:00
|
|
|
- content_for :javascript do
|
2009-10-17 18:42:07 +02:00
|
|
|
:javascript
|
2011-05-11 15:24:34 +02:00
|
|
|
$(function() {
|
|
|
|
$('#nick').focus();
|
2009-10-17 18:42:07 +02:00
|
|
|
});
|
|
|
|
|
2013-02-04 01:46:07 +01:00
|
|
|
- title t('.title')
|
2009-10-17 18:42:07 +02:00
|
|
|
|
2011-05-11 15:24:34 +02:00
|
|
|
%noscript
|
2012-10-08 11:51:56 +02:00
|
|
|
.alert.alert-error
|
2013-02-04 01:46:07 +01:00
|
|
|
!= t '.nojs', link: link_to(t('.noscript'), "http://noscript.net/")
|
2009-10-17 18:42:07 +02:00
|
|
|
|
2012-10-08 11:51:56 +02:00
|
|
|
= 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)
|
2012-10-08 11:51:56 +02:00
|
|
|
.controls
|
2013-06-26 00:42:09 +02:00
|
|
|
= text_field_tag 'nick', nil, autocapitalize: 'off', autocorrect: 'off'
|
2012-10-08 11:51:56 +02:00
|
|
|
|
|
|
|
.control-group
|
2013-10-30 21:28:35 +01:00
|
|
|
%label(for='password' class='control-label')
|
|
|
|
= User.human_attribute_name :password
|
2012-10-08 11:51:56 +02:00
|
|
|
.controls
|
2013-06-26 00:42:09 +02:00
|
|
|
= password_field_tag 'password', nil, autocapitalize: 'off', autocorrect: 'off'
|
2012-10-08 11:51:56 +02:00
|
|
|
|
|
|
|
.control-group
|
|
|
|
.controls
|
2013-02-04 01:46:07 +01:00
|
|
|
= submit_tag t('.login'), class: 'btn'
|
2013-04-04 00:29:50 +02:00
|
|
|
= link_to t('.forgot_password'), forgot_password_path
|