-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
4 changed files
with
40 additions
and
28 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,26 +1,39 @@ | ||
<h2>Change your password</h2> | ||
<% label_css = "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-half" %> | ||
<div class="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
<div class="sm:mx-auto sm:w-full sm:max-w-md"> | ||
<h2 class="mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900">Change your password</h2> | ||
</div> | ||
|
||
<%= 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 %> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-[480px]"> | ||
<div class="bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12"> | ||
<%= 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 %> | ||
|
||
<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", class: label_css %> | ||
</div> | ||
<div class="space-y-6"> | ||
<div> | ||
<div class="block"> | ||
<%= f.label :password, class: "text-sm font-medium leading-6 text-gray-900" %> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %> | ||
</div> | ||
<div class="mt-2"> | ||
<%= f.password_field :password, autocomplete: "new-password", autofocus: true, class: "block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6" %> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :password_confirmation, "Confirm new password" %><br /> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: label_css %> | ||
</div> | ||
<div> | ||
<%= f.label :password_confirmation, class: "block text-sm font-medium leading-6 text-gray-900" %> | ||
<div class="mt-2"> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6" %> | ||
</div> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Change my password" %> | ||
<div> | ||
<%= f.submit "Change my password", class: "flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> | ||
</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
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
This file was deleted.
Oops, something went wrong.