gitlabhq/app/views/profile/password.html.haml
2012-09-12 08:23:20 +03:00

32 lines
1 KiB
Plaintext

%h3.page_title Password
%hr
= form_for @user, url: profile_password_path, method: :put do |f|
.row
.span7
.data
%p.slead After successful password update you will be redirected to login page where you should login with new password
-if @user.errors.any?
.alert-message.block-message.error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.clearfix
= f.label :password
.input= f.password_field :password
.clearfix
= f.label :password_confirmation
.input= f.password_field :password_confirmation
- if Gitlab.config.omniauth_enabled?
.span5.right
.alert.alert-info
%strong Tip: Use one of the following sites to login
%ul.unstyled
- User.omniauth_providers.each do |provider|
%li= link_to authbutton(provider), |
omniauth_authorize_path(User, provider) |
.actions
= f.submit 'Save', class: "btn save-btn"