tabletop-companion/app/views/users/_form.html.erb

32 lines
939 B
Plaintext
Raw Normal View History

2024-04-18 19:58:38 +00:00
<%# locals: (user:, button_text:) -%>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<section class="inset">
<%= form_with model: user do |f| %>
<%= f.label :username %>
2024-05-29 07:24:21 +00:00
<%= f.text_field :username, required: true %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :username) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.label :first_name %>
<%= f.text_field :first_name %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :first_name) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.label :last_name %>
<%= f.text_field :last_name %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :last_name) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.label :email %>
2024-05-29 07:24:21 +00:00
<%= f.text_field :email, required: true %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :email) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.label :password %>
2024-05-29 07:24:21 +00:00
<%= f.password_field :password, required: true %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :password) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.label :password_confirmation %>
2024-05-29 07:24:21 +00:00
<%= f.password_field :password_confirmation, required: true %>
2024-05-29 07:46:31 +00:00
<%= display_form_errors(user, :password_confirmation) %>
2024-04-14 19:01:32 +00:00
2024-04-21 12:45:31 +00:00
<%= f.submit button_text %>
<% end %>
</section>