2012-02-28 20:43:17 +00:00
|
|
|
.wrap
|
|
|
|
%nav
|
2014-01-21 04:51:49 +00:00
|
|
|
%a{href: new_register_request_path}
|
2012-02-29 05:43:40 +00:00
|
|
|
%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
|
2014-01-21 04:51:49 +00:00
|
|
|
= 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")
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.text_field :login, class: "registartion-input #{error ? "registartion-input-error" : ''}", value: login
|
2012-02-28 20:43:17 +00:00
|
|
|
%br/
|
2014-01-21 04:51:49 +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
|
2014-01-21 04:51:49 +00:00
|
|
|
%span#niceCheckbox1.niceCheck{style: 'background-position: 0px -18px;'}
|
|
|
|
= f.check_box :remember_me, checked: true
|
2012-02-28 20:43:17 +00:00
|
|
|
.text=t('devise.sessions.remember_me')
|
2014-01-21 04:51:49 +00:00
|
|
|
.in=f.submit t('layout.devise.shared_links.sign_in'), class: 'button', id: 'btnLogin'
|
|
|
|
%div{style: "clear: both;"}
|
2013-03-26 11:52:38 +00:00
|
|
|
= render 'devise/shared/providers'
|
2012-02-28 20:43:17 +00:00
|
|
|
.forgot
|
|
|
|
.password
|
2012-03-02 12:27:38 +00:00
|
|
|
%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)
|