40 lines
2.7 KiB
Plaintext
Executable File
40 lines
2.7 KiB
Plaintext
Executable File
<div class="mt-4 space-y-4">
|
|
<%- if controller_name != "sessions" %>
|
|
<div class="w-full flex justify-center py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= link_to "Se connecter", new_session_path(resource_name), class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.registerable? && controller_name != "registrations" %>
|
|
<div class="w-full flex justify-center mt-4 py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= link_to "Créer un compte", new_registration_path(resource_name), class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
|
|
<div class="w-full flex justify-center mt-4 py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= link_to "Mot de passe oublié ?", new_password_path(resource_name), class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
|
|
<div class="w-full flex justify-center mt-4 py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= link_to "Renvoyer le lien de confirmation", new_confirmation_path(resource_name), class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
|
|
<div class="w-full flex justify-center mt-4 py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= link_to "Renvoyer le lien de déblocage", new_unlock_path(resource_name), class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%- if devise_mapping.omniauthable? %>
|
|
<%- resource_class.omniauth_providers.each do |provider| %>
|
|
<div class="w-full flex justify-center mt-4 py-2 px-4 border border-neutral-300 rounded-md shadow-sm text-sm font-medium text-purple-600 bg-white hover:bg-neutral-50 hover:border-purple-500 transition-all duration-200">
|
|
<%= button_to "Se connecter avec #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false }, class: "block" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|