foodsoft/app/views/sessions/new.html.haml
2015-02-28 14:50:25 +01:00

32 lines
961 B
Text

- 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/")
- if defined?(FoodsoftWiki) && (page = Page.public_front_page)
= wikified_body page.body, page.title
= 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