-
Notifications
You must be signed in to change notification settings - Fork 12
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
0068b79
commit 495d3ea
Showing
6 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
<h1>Reset Your Password</h1> | ||
|
||
<%= form_with model: @user, url: password_reset_path(token: params[:token]) do |form| %> | ||
<% if form.object.errors.any? %> | ||
<% form.object.errors.full_messages.each do |message| %> | ||
<div> <%= message %></div> | ||
<% end %> | ||
<% end %> | ||
|
||
<div> | ||
<%= form.label :password %> | ||
<%= form.password_field :password %> | ||
<div class="flex flex-col items-center h-screen px-5 pt-10 bg-purple-dark"> | ||
<div class="flex flex-col w-full mb-6"> | ||
<h1 class="mb-4 text-4xl italic font-black text-white">Reset your password</h1> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :password_confirmation %> | ||
<%= form.password_field :password_confirmation %> | ||
</div> | ||
<div class="w-full"> | ||
<%= form_with model: @user, url: password_reset_path(token: params[:token]) do |form| %> | ||
<% if form.object.errors.any? %> | ||
<% form.object.errors.full_messages.each do |message| %> | ||
<div> <%= message %></div> | ||
<% end %> | ||
<% end %> | ||
<div class="mb-10"> | ||
<div class="flex flex-col w-full mb-6"> | ||
<%= form.label :password, class: "text-white italic font-bold mb-2" %> | ||
<%= form.password_field :password, placeholder: "You know how a strong password goes, right?", class: "bg-transparent border border-2 border-white rounded-md text-white placeholder-white focus:bg-white focus:text-black focus:placeholder-gray focus:border-white focus:ring-white", data: { test_id: "email_field" } %> | ||
</div> | ||
|
||
<div class="flex flex-col w-full mb-6"> | ||
<%= form.label :password_confirmation, class: "text-white italic font-bold mb-2" %> | ||
<%= form.password_field :password_confirmation, placeholder: "Confirm strong password", class: "bg-transparent border border-2 border-white rounded-md text-white placeholder-white focus:bg-white focus:text-black focus:placeholder-gray focus:border-white focus:ring-white", data: { test_id: "email_field" } %> | ||
</div> | ||
|
||
<div> | ||
<%= form.submit "Reset Your Password" %> | ||
<%= form.submit "Reset Your Password", class: "w-full bg-red py-4 text-white font-black italic rounded-[10px] uppercase", data: { test_id: "sign_up_button" } %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</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 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