Skip to content

Commit

Permalink
feat(sign up): update the page (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybakanovsky committed Aug 31, 2023
1 parent b5b8170 commit ce0dedd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 34 deletions.
34 changes: 0 additions & 34 deletions app/views/devise/registrations/new.html.erb

This file was deleted.

20 changes: 20 additions & 0 deletions app/views/devise/registrations/new.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.columns.is-centered
.column.is-one-third
h2.title.is-4.has-text-centered = t('.sign_up')
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= render "devise/shared/error_messages", resource: resource
.field
= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "email"
.field
= f.password_field :password, autocomplete: "new-password", placeholder: "password"
- if @minimum_password_length
p.help
| (#{@minimum_password_length} characters minimum)
.field
= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "password confirmation"
.actions
.columns
.column.is-three-quarters
= f.submit 'Sign up', class: "button is-primary"
.column.is-flex.is-justify-content-flex-end
= link_to 'Log in', new_user_session_path, class: 'button is-light'

0 comments on commit ce0dedd

Please sign in to comment.