mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Add styling to passwords and confirmations
This commit is contained in:
parent
28143a8cce
commit
30831ce718
7 changed files with 72 additions and 25 deletions
16
app/views/devise/passwords/edit.html.haml
Normal file
16
app/views/devise/passwords/edit.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-6.col-md-offset-3
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title
|
||||
Change your password
|
||||
.panel-body
|
||||
= semantic_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
||||
= f.hidden_field :reset_password_token
|
||||
= f.input :password, input_html: { autofocus: true, required: true, autocomplete: "off"}, label: 'New password'
|
||||
= f.input :password_confirmation, input_html: { required: true, autocomplete: "off" }, label: 'New password confirmation'
|
||||
%p.text-right
|
||||
= f.action :submit, as: :button, label: 'Change my password', button_html: { class: 'btn btn-success' }
|
||||
|
||||
= render partial: 'devise/shared/help'
|
||||
Loading…
Add table
Add a link
Reference in a new issue