-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2c39c7
commit 9037d66
Showing
3 changed files
with
66 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
<%= image_tag("/ms-icon-150x150.png", alt: "Logo") %> | ||
<div class="container text-center"> | ||
<%= image_tag("/ms-icon-150x150.png", alt: "Logo") %> | ||
|
||
<h2>Change your password</h2> | ||
<div class="row justify-content-md-center"> | ||
<div class="col col-lg-4"> | ||
<h2>Change your password</h2> | ||
<br /> | ||
|
||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<%= f.hidden_field :reset_password_token %> | ||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<div class="field"> | ||
<%= f.label :password, "New password" %><br /> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em><br /> | ||
<% end %> | ||
<%= f.password_field :password, autofocus: true, autocomplete: "new-password" %> | ||
</div> | ||
<%= f.hidden_field :reset_password_token %> | ||
|
||
<div class="field"> | ||
<%= f.label :password_confirmation, "Confirm new password" %><br /> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password" %> | ||
</div> | ||
<div class="field form-outline mb-4"> | ||
<%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "form-control", placeholder: "New Password", required: true %> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em><br /> | ||
<% end %> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Change my password" %> | ||
</div> | ||
<% end %> | ||
<div class="field form-outline mb-4"> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control", placeholder: "Confirm New Password", required: true %> | ||
</div> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="row mb-4"> | ||
<div class="col d-flex justify-content-center"> | ||
<div class="col forgot"> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Change my password", class: "btn btn-primary btn-block w-100" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
<%= image_tag("/ms-icon-150x150.png", alt: "Logo") %> | ||
<div class="container text-center"> | ||
<%= image_tag("/ms-icon-150x150.png", alt: "Logo") %> | ||
|
||
<h2>Forgot your password?</h2> | ||
<div class="row justify-content-md-center"> | ||
<div class="col col-lg-4"> | ||
<h2>Forgot your password?</h2> | ||
<br /> | ||
|
||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<div class="field form-outline mb-4"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control", placeholder: "Email", required: true %> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Send me reset password instructions" %> | ||
</div> | ||
<% end %> | ||
<div class="row mb-4"> | ||
<div class="col d-flex justify-content-center"> | ||
<div class="col forgot"> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="actions"> | ||
<%= f.submit "Send me reset password instructions", class: "btn btn-primary btn-block w-100" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters