forked from getrailsui/railsui
-
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
7b5b8ce
commit 5184950
Showing
19 changed files
with
175 additions
and
48 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
</tr> | ||
</tbody> | ||
</table> | ||
x |
7 changes: 7 additions & 0 deletions
7
app/views/railsui/systems/authentication/change_password.html.erb
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% content_for :fullwidth, true %> | ||
|
||
<div class="lg:px-6"> | ||
<%= render "railsui/shared/header" %> | ||
</div> | ||
|
||
<%= render "railsui/themes/#{Railsui.config.css_framework}/#{Railsui.config.theme}/authentication/change_password" %> |
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
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
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
135 changes: 135 additions & 0 deletions
135
app/views/railsui/themes/tailwind/hound/authentication/_change_password.html.erb
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 |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<%= render preview do %> | ||
<div class="pointer-events-none select-none sm:h-[800px] min-h-[600px] sm:-m-8 -m-4 pt-10 sm:pt-0 flex flex-col items-center justify-center bg-cover bg-center px-4" style="background-image: url('<%= asset_url('fusion.png') %>')"> | ||
<div class="sm:flex-1 flex flex-col justify-center sm:w-[428px] w-full"> | ||
<div> | ||
<div class="flex justify-center"> | ||
<a href="/"> | ||
<img alt="Hound logo" class="w-10 h-auto" src="https://f001.backblazeb2.com/file/railsui/themes/hound/logo.svg"> | ||
</a> | ||
</div> | ||
|
||
<div class="mt-6"> | ||
<div class="text-center"> | ||
<h1 class="text-3xl my-3">Change your password</h1> | ||
<p class="mb-6 text-slate-700 dark:text-slate-200 max-w-sm mx-auto">Please enter a new password to update and secure your account.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="bg-white dark:bg-slate-800 dark:border-slate-700/80 shadow-sm rounded-lg p-8 border border-slate-300/60"> | ||
|
||
<form class="new_user" id="new_user" action="#" accept-charset="UTF-8" method="post"> | ||
<input type="hidden" name="_method" value="put" autocomplete="off"><input type="hidden" name="authenticity_token" value="#" autocomplete="off"> | ||
<input autocomplete="off" type="hidden" value="R6ZdL9coz642z78qaqsr" name="user[reset_password_token]" id="user_reset_password_token"> | ||
|
||
<div class="form-group"> | ||
<label class="form-label" for="user_password">New password</label> | ||
<div class="relative"> | ||
<input autofocus="autofocus" autocomplete="new-password" class="form-input focus:pl-10 peer transition" type="password" name="user[password]" id="user_password"> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" role="img" aria-labelledby="ar71butxjb5gz2j6p7waghnh9oumt8mp"><title id="ar71butxjb5gz2j6p7waghnh9oumt8mp">Lock closed</title> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"></path> | ||
</svg> | ||
|
||
</div> | ||
<p class="mt-1 text-xs text-slate-600 dark:text-slate-400">6 characters minimum</p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="form-label" for="user_password_confirmation">Confirm new password</label> | ||
<div class="relative"> | ||
<input autocomplete="new-password" class="form-input focus:pl-10 peer transition" type="password" name="user[password_confirmation]" id="user_password_confirmation"> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" role="img" aria-labelledby="a81fu34qo8o330fc2psw0cp7g0a4madx"><title id="a81fu34qo8o330fc2psw0cp7g0a4madx">Lock closed</title> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"></path> | ||
</svg> | ||
|
||
</div> | ||
</div> | ||
|
||
<input type="submit" name="commit" value="Change password" class="btn btn-primary hover:cursor-pointer w-full" data-disable-with="Change password"> | ||
</form> | ||
</div> | ||
|
||
<div class="mt-4"> | ||
<div class="text-center mb-1"> | ||
<a class="text-sm text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-500" href="/users/confirmation/new">Didn't receive confirmation instructions?</a> | ||
</div> | ||
|
||
<div class="text-center mb-2"> | ||
<a class="text-sm text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-500" href="/users/unlock/new">Didn't receive unlock instructions?</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<% content_for :html, flush: true do %> | ||
|
||
<% end %> | ||
|
||
<% content_for :erb, flush: true do %> | ||
<!-- app/views/devise/passwords/edit.html.erb --> | ||
<%% content_for :masthead do %> | ||
<div class="text-center"> | ||
<h1 class="text-3xl my-3">Change your password</h1> | ||
<p class="mb-6 text-slate-700 dark:text-slate-200 max-w-sm mx-auto">Please enter a new password to update and secure your account.</p> | ||
</div> | ||
<%%= render "shared/error_messages", resource: resource %> | ||
<%% end %> | ||
|
||
|
||
<%%= render "auth_layout" do %> | ||
<%%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | ||
<%%= f.hidden_field :reset_password_token %> | ||
|
||
<div class="form-group"> | ||
<%%= f.label :password, "New password", class: "form-label" %> | ||
<div class="relative"> | ||
<%%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "form-input focus:pl-10 peer transition" %> | ||
<%%= icon "lock-closed", classes: "w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" %> | ||
</div> | ||
<%% if @minimum_password_length %> | ||
<p class="mt-1 text-sm text-slate-600 dark:text-slate-400"><%%= @minimum_password_length %> characters minimum</p> | ||
<%% end %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%%= f.label :password_confirmation, "Confirm new password", class: "form-label" %> | ||
<div class="relative"> | ||
<%%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-input focus:pl-10 peer transition" %> | ||
<%%= icon "lock-closed", classes: "w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" %> | ||
</div> | ||
</div> | ||
|
||
<%%= f.submit "Change password", class: "btn btn-primary hover:cursor-pointer w-full" %> | ||
<%% end %> | ||
<%% end %> | ||
<% end %> | ||
|
||
<% content_for :haml, flush: true do %> | ||
/ app/views/devise/passwords/edit.haml.erb | ||
- content_for :masthead do | ||
.text-center | ||
%h1.text-3xl.my-3 Change your password | ||
%p.mb-6.text-slate-700.dark:text-slate-200.max-w-sm.mx-auto Please enter a new password to update and secure your account. | ||
= render "shared/error_messages", resource: resource | ||
= render "auth_layout" do | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| | ||
= f.hidden_field :reset_password_token | ||
.form-group | ||
= f.label :password, "New password", class: "form-label" | ||
.relative | ||
= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "form-input focus:pl-10 peer transition" | ||
= icon "lock-closed", classes: "w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" | ||
- if @minimum_password_length | ||
%p.mt-1.text-sm.text-slate-600.dark:text-slate-400 | ||
= @minimum_password_length | ||
characters minimum | ||
.form-group | ||
= f.label :password_confirmation, "Confirm new password", class: "form-label" | ||
.relative | ||
= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-input focus:pl-10 peer transition" | ||
= icon "lock-closed", classes: "w-5 h-5 absolute translate-x-0 top-3 text-slate-300 peer-focus:text-indigo-500/80 opacity-0 transition transform peer-focus:opacity-100 peer-focus:translate-x-3 dark:peer-focus:text-indigo-400" | ||
= f.submit "Change password", class: "btn btn-primary hover:cursor-pointer w-full" | ||
<% end %> | ||
|
||
<%= render_snippet active_tab: "erb", erb_filename: "new.html.erb", haml_filename: "new.haml.erb" %> |
10 changes: 2 additions & 8 deletions
10
app/views/railsui/themes/tailwind/hound/authentication/_confirmation.html.erb
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
7 changes: 1 addition & 6 deletions
7
app/views/railsui/themes/tailwind/hound/authentication/_edit.html.erb
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
5 changes: 5 additions & 0 deletions
5
app/views/railsui/themes/tailwind/hound/authentication/_read_before.html.erb
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="my-6"> | ||
<%= render callout do %> | ||
<p>Be sure to read the <%= link_to "Rails UI authentication design patterns", systems_authentication_overview_path %> overview to understand how we've customized the default Devise views to work nicely inside the <%= theme_name.humanize %> theme. | ||
<% end %> | ||
</div> |
8 changes: 1 addition & 7 deletions
8
app/views/railsui/themes/tailwind/hound/authentication/_reset_password.html.erb
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
8 changes: 1 addition & 7 deletions
8
app/views/railsui/themes/tailwind/hound/authentication/_signin.html.erb
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
8 changes: 1 addition & 7 deletions
8
app/views/railsui/themes/tailwind/hound/authentication/_signup.html.erb
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
Oops, something went wrong.