|
1 | | -<div data-controller="registrations"> |
2 | | - <h2 class="text-center">Create an Account</h2> |
| 1 | +<div class="form--registration" data-controller="registrations"> |
| 2 | + <h1 class="text-center">Sign up for an account</h1> |
| 3 | + <p class="text-center">Already have an account? <a data-modal-url="<%= users_modals_sign_in_path %>" data-action="click->registrations#presentModal">Sign in</a></p> |
3 | 4 |
|
4 | | - <%= form_for @user, url: user_registration_path, remote: true, html: { data: { type: "json", action: "ajax:success->registrations#onSignUpSuccess ajax:error->registrations#onSignUpError" } } do |f| %> |
| 5 | + <%= form_for @user, url: user_registration_path, remote: true, html: { data: { type: "json", action: "ajax:success->registrations#onSignUpSuccess ajax:error->registrations#onSignUpError" }, class: "form--registration-form" } do |f| %> |
5 | 6 | <%# <%= render "devise/shared/error_messages", resource: @user %> |
6 | 7 |
|
7 | | - <div class="field"> |
8 | | - <%= f.label :name %><br /> |
| 8 | + <div class="form--field"> |
| 9 | + <%= f.label :name %> |
9 | 10 | <%= f.text_field :name, autofocus: true, autocomplete: "name" %> |
10 | 11 | </div> |
11 | 12 |
|
12 | | - <div class="field"> |
13 | | - <%= f.label :email %><br /> |
| 13 | + <div class="form--field"> |
| 14 | + <%= f.label :email %> |
14 | 15 | <%= f.email_field :email, autocomplete: "email" %> |
15 | 16 | </div> |
16 | 17 |
|
17 | | - <div class="field"> |
| 18 | + <div class="form--field"> |
18 | 19 | <%= f.label :password %> |
19 | 20 | <% if @minimum_password_length %> |
20 | 21 | <em>(<%= @minimum_password_length %> characters minimum)</em> |
21 | | - <% end %><br /> |
| 22 | + <% end %> |
22 | 23 | <%= f.password_field :password, autocomplete: "new-password" %> |
23 | 24 | </div> |
24 | 25 |
|
25 | | - <div class="field"> |
26 | | - <%= f.label :password_confirmation %><br /> |
| 26 | + <div class="form--field"> |
| 27 | + <%= f.label :password_confirmation %> |
27 | 28 | <%= f.password_field :password_confirmation, autocomplete: "new-password" %> |
28 | 29 | </div> |
29 | 30 |
|
30 | 31 | <div class="actions"> |
31 | | - <%= f.submit "Sign up" %> |
| 32 | + <%= f.submit "SIGN UP", class: "button--sign-in" %> |
32 | 33 | </div> |
33 | 34 | <% end %> |
34 | 35 | </div> |
0 commit comments