rosa-build/app/views/devise/sessions/new.html.haml

36 lines
1.5 KiB
Plaintext
Raw Normal View History

2012-02-28 20:43:17 +00:00
.wrap
%nav
2012-02-29 05:43:40 +00:00
%a{:href => new_register_request_path}
%p=t("layout.devise.shared_links.sign_up")
2012-02-28 20:43:17 +00:00
/ Top block
%header
.logo
/ Page
%article
2012-03-21 17:45:51 +00:00
- if flash.try(:first).try(:first) == :alert && [t('devise.failure.invalid'), t('devise.failure.locked')].include?(flash.try(:first).try(:last))
- error = flash.first.last
- error ||= false
2012-02-29 05:43:40 +00:00
- login = t('devise.sessions.login'); password = t('devise.sessions.password')
=hidden_field_tag :login_default, login
=hidden_field_tag :password_default, password
= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "form login" }) do |f|
2012-02-28 20:43:17 +00:00
%h1= title t("layout.sessions.sign_in_header")
2012-03-21 17:45:51 +00:00
= f.text_field :login, :class => "registartion-input #{error ? "registartion-input-error" : ''}", :value => login
2012-02-28 20:43:17 +00:00
%br/
2012-03-21 17:45:51 +00:00
= f.password_field :password, :class => "registartion-input #{error ? "registartion-input-error" : ''}", :value => password
2012-02-28 20:43:17 +00:00
%br/
.registration
.remember
.check
%span#niceCheckbox1.niceCheck
2012-02-28 20:43:17 +00:00
= f.check_box :remember_me
.text=t('devise.sessions.remember_me')
.in=f.submit t('layout.devise.shared_links.sign_in'), :class => 'button', :id => 'btnLogin'
2012-02-28 20:43:17 +00:00
%div{:style => "clear: both;"}
.hr
.both
.forgot
.password
%p= link_to t("layout.devise.shared_links.forgot_password"), new_password_path(resource_name)
2012-03-21 17:45:51 +00:00
=showDeviseHintError(:login_error, error)