rosa-build/app/views/devise/passwords/edit.html.haml

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-03-01 16:05:00 +00:00
.wrap
%nav
%a{:href => new_register_request_path}
%p=t("layout.devise.shared_links.sign_up")
%header
.logo
%article
%br
%h1= title t('devise.passwords.edit')
%br
.content
- password_error, reset_password_token_error = getDeviseErrors(:password, :reset_password_token)
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :class => "form" }) do |f|
= f.hidden_field :reset_password_token
2012-03-01 16:05:00 +00:00
.left.first=t('activerecord.attributes.user.password')
.right.first
= f.password_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
2012-03-01 16:05:00 +00:00
.both
.left=t('activerecord.attributes.user.password_confirm')
.right
= f.password_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
2012-03-01 16:05:00 +00:00
.both
%br
=f.submit t("devise.passwords.edit_button"), :class => 'button', :id => 'btnLogin'
=showDeviseHintError(:password, password_error, 'reset')