summaryrefslogtreecommitdiff
path: root/app/views/profiles/passwords
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-31 01:27:02 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-31 01:27:02 +0200
commit16eb3ac360df60469cc9b1a93870c0273c7fe78f (patch)
tree9aff8fff986e9868b1500001d00968f469f73067 /app/views/profiles/passwords
parent2ecf83191d4ae7a158d70f8cfa11ec9f2744b0ce (diff)
downloadgitlab-ce-16eb3ac360df60469cc9b1a93870c0273c7fe78f.tar.gz
Update form classes
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.haml12
-rw-r--r--app/views/profiles/passwords/new.html.haml12
2 files changed, 12 insertions, 12 deletions
diff --git a/app/views/profiles/passwords/edit.html.haml b/app/views/profiles/passwords/edit.html.haml
index a5fa6e7f186..e5fc5003843 100644
--- a/app/views/profiles/passwords/edit.html.haml
+++ b/app/views/profiles/passwords/edit.html.haml
@@ -14,19 +14,19 @@
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
- .control-group
+ .form-group
= f.label :current_password
- .controls
+ .col-sm-10
= f.password_field :current_password, required: true
%div
= link_to "Forgot your password?", reset_profile_password_path, method: :put
- .control-group
+ .form-group
= f.label :password, 'New password'
- .controls= f.password_field :password, required: true
- .control-group
+ .col-sm-10= f.password_field :password, required: true
+ .form-group
= f.label :password_confirmation
- .controls
+ .col-sm-10
= f.password_field :password_confirmation, required: true
.form-actions
= f.submit 'Save password', class: "btn btn-save"
diff --git a/app/views/profiles/passwords/new.html.haml b/app/views/profiles/passwords/new.html.haml
index a4e7dadd16a..fc2c85df9b9 100644
--- a/app/views/profiles/passwords/new.html.haml
+++ b/app/views/profiles/passwords/new.html.haml
@@ -10,13 +10,13 @@
- @user.errors.full_messages.each do |msg|
%li= msg
- .control-group
+ .form-group
= f.label :password
- .controls= f.password_field :password, required: true
- .control-group
+ .col-sm-10= f.password_field :password, required: true
+ .form-group
= f.label :password_confirmation
- .controls
+ .col-sm-10
= f.password_field :password_confirmation, required: true
- .control-group
- .controls
+ .form-group
+ .col-sm-10
= f.submit 'Set new password', class: "btn btn-create"