mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 18:59:13 -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
8 lines
481 B
Plaintext
8 lines
481 B
Plaintext
= render 'devise/shared/card', title: 'Sign in' do
|
|
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
|
= f.text_field :login, label: 'Login name or email', autocomplete: 'username', required: true
|
|
= f.password_field :password, autocomplete: 'current-password', required: true
|
|
- if devise_mapping.rememberable?
|
|
= f.check_box :remember_me, label: 'Keep me signed in'
|
|
= f.submit 'Sign in', class: 'btn btn-success w-100'
|