summaryrefslogtreecommitdiff
path: root/app/views/settings/passwords/new.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/settings/passwords/new.html.haml')
-rw-r--r--app/views/settings/passwords/new.html.haml31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/settings/passwords/new.html.haml b/app/views/settings/passwords/new.html.haml
new file mode 100644
index 00000000000..748b0017109
--- /dev/null
+++ b/app/views/settings/passwords/new.html.haml
@@ -0,0 +1,31 @@
+- page_title _('New Password')
+- breadcrumb_title _('New Password')
+
+%h3.page-title= _('Set up new password')
+%hr
+= form_for @user, url: settings_password_path, method: :post do |f|
+ %p.slead
+ = _('Please set a new password before proceeding.')
+ %br
+ = _('After a successful password update you will be redirected to login screen.')
+
+ = form_errors(@user)
+
+ - unless @user.password_automatically_set?
+ .form-group.row
+ .col-sm-2.col-form-label
+ = f.label :current_password, _('Current password')
+ .col-sm-10
+ = f.password_field :current_password, required: true, class: 'form-control'
+ .form-group.row
+ .col-sm-2.col-form-label
+ = f.label :password, _('New password')
+ .col-sm-10
+ = f.password_field :password, required: true, class: 'form-control'
+ .form-group.row
+ .col-sm-2.col-form-label
+ = f.label :password_confirmation, _('Password confirmation')
+ .col-sm-10
+ = f.password_field :password_confirmation, required: true, class: 'form-control'
+ .form-actions
+ = f.submit _('Set new password'), class: 'btn btn-success'