58 lines
3.2 KiB
Plaintext
Executable File
58 lines
3.2 KiB
Plaintext
Executable File
<div class="mt-6">
|
|
<div class="relative">
|
|
<div class="absolute inset-0 flex items-center">
|
|
<div class="w-full border-t border-gray-200"></div>
|
|
</div>
|
|
<div class="relative flex justify-center text-sm">
|
|
<span class="px-2 bg-white text-gray-500">Ou continuer avec</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-6 grid grid-cols-2 gap-3">
|
|
<%- if controller_name != "sessions" %>
|
|
<%= link_to new_session_path(resource_name), class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="log-in" class="w-4 h-4 mr-2"></i>
|
|
Se connecter
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.registerable? && controller_name != "registrations" %>
|
|
<%= link_to new_registration_path(resource_name), class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="user-plus" class="w-4 h-4 mr-2"></i>
|
|
S'inscrire
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="mt-4 grid grid-cols-1 gap-3">
|
|
<%- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
|
|
<%= link_to new_password_path(resource_name), class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="help-circle" class="w-4 h-4 mr-2"></i>
|
|
Mot de passe oublié ?
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
|
|
<%= link_to new_confirmation_path(resource_name), class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="mail" class="w-4 h-4 mr-2"></i>
|
|
Renvoyer le lien de confirmation
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
|
|
<%= link_to new_unlock_path(resource_name), class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="unlock" class="w-4 h-4 mr-2"></i>
|
|
Renvoyer le lien de déblocage
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.omniauthable? %>
|
|
<%- resource_class.omniauth_providers.each do |provider| %>
|
|
<%= 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 rounded-xl shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 transition-all duration-200" do %>
|
|
<i data-lucide="external-link" class="w-4 h-4 mr-2"></i>
|
|
Se connecter avec <%= OmniAuth::Utils.camelize(provider) %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div> |