-
Notifications
You must be signed in to change notification settings - Fork 5
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
8 changed files
with
114 additions
and
94 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,20 +1,25 @@ | ||
|
||
<div class="min-h-full flex flex-col space-y-2 justify-center py-12 sm:px-6 lg:px-8"> | ||
|
||
<h2 class="text-2xl">Resend confirmation instructions</h2> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md"> | ||
|
||
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<div class="min-h-full flex flex-col space-y-2 justify-center py-12 sm:px-6 lg:px-8"> | ||
|
||
<div class="field"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> | ||
</div> | ||
<h2 class="text-2xl">Resend confirmation instructions</h2> | ||
|
||
<div class="actions mt-4"> | ||
<%= f.submit "Resend confirmation instructions" %> | ||
</div> | ||
<% end %> | ||
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, class: "space-y-2 flex flex-col" }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="field"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> | ||
</div> | ||
|
||
<div class="actions mt-4"> | ||
<%= f.submit "Resend confirmation instructions" %> | ||
</div> | ||
<% end %> | ||
<%= render "devise/shared/links" %> | ||
|
||
</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
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,20 +1,25 @@ | ||
<div class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md"> | ||
|
||
<h2>Forgot your password?</h2> | ||
<div class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
|
||
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<h2 class="text-2xl">Forgot your password?</h2> | ||
|
||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<%= form_for(resource, | ||
as: resource_name, | ||
url: password_path(resource_name), | ||
html: { method: :post, class: "space-y-2 flex flex-col" }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Send me reset password instructions" %> | ||
</div> | ||
<% end %> | ||
<div class="field"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="actions"> | ||
<%= f.submit "Send me reset password instructions" %> | ||
</div> | ||
<% end %> | ||
<%= render "devise/shared/links" %> | ||
|
||
</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
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,57 +1,58 @@ | ||
<%- if controller_name != 'sessions' %> | ||
<%= link_to "Log in", new_session_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<%= link_to "Sign up", new_registration_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %> | ||
<% end %> | ||
|
||
<div class="mt-6"> | ||
<div class="relative"> | ||
<div class="absolute inset-0 flex items-center"> | ||
<div class="w-full border-t border-gray-300 dark:border-gray-700"></div> | ||
</div> | ||
<div class="relative flex justify-center text-sm"> | ||
<span class="px-2 bg-white rounded-lg text-gray-500"> | ||
<%= link_to gettext("Register"), new_user_registration_path %> | ||
<%= gettext("Or continue with") %> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div class="mt-6 grid grid-cols-4 gap-3"> | ||
|
||
<%- if devise_mapping.omniauthable? %> | ||
<%- resource_class.omniauth_providers.each do |provider| %> | ||
|
||
|
||
<div> | ||
<%= button_to omniauth_authorize_path(resource_name, provider), data: { turbo: false }, | ||
class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 dark:border-gray-800 rounded-md shadow-sm bg-white dark:bg-black text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900" do %> | ||
<span class="sr-only"><%= gettext("Sign in with #{OmniAuth::Utils.camelize(provider)}") %></span> | ||
<%= raw icon_for(provider) %> | ||
<% end %> | ||
</div> | ||
|
||
<% end %> | ||
<% end %> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="mt-6"> | ||
<div class="relative"> | ||
<div class="absolute inset-0 flex items-center"> | ||
<div class="w-full border-t border-gray-300 dark:border-gray-700"></div> | ||
</div> | ||
<div class="relative flex justify-center text-sm"> | ||
<span class="px-2 bg-white dark:bg-black text-gray-500"> | ||
<%= link_to gettext("Register"), new_user_registration_path %> | ||
<%= gettext("Or continue with") %> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div class="mt-6 grid grid-cols-4 gap-3"> | ||
<div class="flex flex-col space-y-2 mt-2 text-xs"> | ||
<%- if controller_name != 'sessions' %> | ||
<%= link_to "Log in", new_session_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.omniauthable? %> | ||
<%- resource_class.omniauth_providers.each do |provider| %> | ||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<%= link_to "Sign up", new_registration_path(resource_name) %> | ||
<% end %> | ||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %> | ||
<% end %> | ||
<div> | ||
<%= button_to omniauth_authorize_path(resource_name, provider), data: { turbo: false }, | ||
class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 dark:border-gray-800 rounded-md shadow-sm bg-white dark:bg-black text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900" do %> | ||
<span class="sr-only"><%= gettext("Sign in with #{OmniAuth::Utils.camelize(provider)}") %></span> | ||
<%= raw icon_for(provider) %> | ||
<% end %> | ||
</div> | ||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %> | ||
<% 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,16 +1,21 @@ | ||
<h2>Resend unlock instructions</h2> | ||
|
||
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md"> | ||
|
||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<h2 class="text-2xl">Resend unlock instructions</h2> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Resend unlock instructions" %> | ||
</div> | ||
<% end %> | ||
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post, class: "space-y-2 flex flex-col" }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Resend unlock instructions" %> | ||
</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