Skip to content

Commit

Permalink
fix(sign-in): add buttons to change role (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavSokov authored Dec 19, 2023
1 parent 251ac3c commit bd79c2d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/views/devise/registrations/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@
figure.image.is-16x16
= image_tag('arrow-right.svg', alt: '->')
br
.is-flex.is-justify-content-center
.is-flex.is-justify-content-center.mb-2
| Already have an account?  
= link_to 'Login now', new_user_session_path, class: 'has-text-weight-bold has-text-budgeting-kid-color'
.is-flex.is-justify-content-center
| Not a parent and has a parental code?  
= link_to "Log in as a kid", new_sign_in_kid_path, class: 'has-text-weight-bold has-text-budgeting-kid-color'
.for-desktop.column.has-background-image.is-flex.is-justify-content-center.is-align-items-center
figure.image.is-coins
= image_tag('coins.svg')
4 changes: 4 additions & 0 deletions app/views/devise/sessions/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
= link_to t(".sign_up"), new_registration_path(resource_name), class: 'has-text-weight-bold has-text-budgeting-kid-color'
.column.is-flex.is-justify-content-flex-end
= link_to "Forgot your password?", new_password_path(resource_name), class: 'has-text-weight-bold has-text-budgeting-kid-color'
.columns
.column
| Not a parent and has a parental code?  
= link_to "Log in as a kid", new_sign_in_kid_path, class: 'has-text-weight-bold has-text-budgeting-kid-color'
.for-desktop.column.has-background-image.is-flex.is-justify-content-center.is-align-items-center
figure.image.is-coins
= image_tag('coins.svg')
4 changes: 3 additions & 1 deletion app/views/sign_in_kids/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
| Login  
figure.image.is-16x16
= image_tag('arrow-right.svg', alt: '->')
br
.is-flex.is-justify-content-center
| Don't have a parental core or a parent?  
= link_to "Log in as a parent", my_account_path, class: 'has-text-weight-bold has-text-budgeting-kid-color'
.for-desktop.column.has-background-image.is-flex.is-justify-content-center.is-align-items-center
figure.image.is-coins
= image_tag('coins.svg')

0 comments on commit bd79c2d

Please sign in to comment.