25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
#block-login.block
|
|
%h2= t("layout.sessions.sign_in_header")
|
|
.content.login
|
|
- if flash.present?
|
|
.flash
|
|
- flash.each do |key, value|
|
|
.message{ :title => key.to_s.humanize, :class => (key == :alert ? "error" : key) }
|
|
%p= value
|
|
- form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "form login" }) do |f|
|
|
.group.wat-cf
|
|
.left
|
|
= f.label :email, :class => "label right"
|
|
.right
|
|
= f.text_field :email, :class => "text_field"
|
|
.group.wat-cf
|
|
.left
|
|
= f.label :password, :class => "label right"
|
|
.right
|
|
= f.password_field :password, :class => "text_field"
|
|
.group.navform.wat-cf
|
|
.right
|
|
%button.button{ :type => "submit" }
|
|
%img{ :src => "/images/web-app-theme/icons/key.png", :alt => "Save" }= t("layout.login")
|
|
%span.text_button_padding
|
|
= link_to t('devise.passwords.link'), new_password_path(resource_name), :class => "text_button_padding link_button" |