mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-02 03:11:24 -05:00
* Add authentication dialogs for sign in and sign up - Implemented AuthDialog component to manage sign in and sign up modals. - Created SignInModal and SignUpModal components for handling respective authentication processes. - Added AuthFields component for reusable form fields and error handling. - Updated various views to utilize the new authentication dialogs instead of traditional links. - Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads. - Added feature specs for testing the functionality of the new dialogs. * Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting * Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging * Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling * Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
- if controller_name != 'sessions'
|
|
%p.mb-1= link_to 'Sign in', new_session_path(resource_name)
|
|
|
|
- if devise_mapping.registerable? && controller_name != 'registrations'
|
|
%p.mb-1= link_to 'Join free', new_registration_path(resource_name)
|
|
|
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
|
%p.mb-1= link_to 'Forgot your password?', new_password_path(resource_name)
|
|
|
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
|
%p.mb-1= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
|
|
|
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
|
%p.mb-1= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
|
|
|
- if devise_mapping.omniauthable?
|
|
- resource_class.omniauth_providers.each do |provider|
|
|
%p.mb-1
|
|
= link_to omniauth_authorize_path(resource_name, provider), class: 'btn' do
|
|
= icon 'fab', provider
|
|
Sign in with #{provider.to_s.titleize}
|