foodsoft/app/views/sessions/new.html.haml
2013-02-04 01:46:07 +01:00

27 lines
696 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/")
= form_tag sessions_path, class: 'form-horizontal' do
.control-group
%label(for='nick' class='control-label')= t '.user'
.controls
= text_field_tag 'nick'
.control-group
%label(for='password' class='control-label')= t '.password'
.controls
= password_field_tag 'password'
.control-group
.controls
= submit_tag t('.login'), class: 'btn'
= link_to t('.forgot_password'), :controller => 'login', :action => 'forgot_password'