diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 02:50:36 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 02:50:36 +0200 |
commit | 010a770b3fa15119b40a994fde6ffdde3acf6d2d (patch) | |
tree | d0d90a2aefe78dae9db490f8b5ca168ce4809e28 /app/views/profiles/passwords | |
parent | 16eb3ac360df60469cc9b1a93870c0273c7fe78f (diff) | |
download | gitlab-ce-010a770b3fa15119b40a994fde6ffdde3acf6d2d.tar.gz |
Migrate forms and inputs pt1
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/profiles/passwords')
-rw-r--r-- | app/views/profiles/passwords/edit.html.haml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/profiles/passwords/edit.html.haml b/app/views/profiles/passwords/edit.html.haml index e5fc5003843..72f6521d92b 100644 --- a/app/views/profiles/passwords/edit.html.haml +++ b/app/views/profiles/passwords/edit.html.haml @@ -3,7 +3,7 @@ Change your password or recover your current one. %hr .update-password - = form_for @user, url: profile_password_path, method: :put do |f| + = form_for @user, url: profile_password_path, method: :put, html: { class: 'form-horizontal' } do |f| %div %p.slead You must provide current password in order to change it. @@ -15,18 +15,18 @@ - @user.errors.full_messages.each do |msg| %li= msg .form-group - = f.label :current_password + = f.label :current_password, class: 'control-label' .col-sm-10 - = f.password_field :current_password, required: true + = f.password_field :current_password, required: true, class: 'form-control' %div = link_to "Forgot your password?", reset_profile_password_path, method: :put .form-group - = f.label :password, 'New password' - .col-sm-10= f.password_field :password, required: true + = f.label :password, 'New password', class: 'control-label' + .col-sm-10= f.password_field :password, required: true, class: 'form-control' .form-group - = f.label :password_confirmation + = f.label :password_confirmation, class: 'control-label' .col-sm-10 - = f.password_field :password_confirmation, required: true + = f.password_field :password_confirmation, required: true, class: 'form-control' .form-actions = f.submit 'Save password', class: "btn btn-save" |