%= form_with(model: user, class: "contents") do |form| %>
<% if user.errors.any? %>
<%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:
<% user.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<% if user.confirmed? %>
<%= form.label :email, "Confirmed Email" %>
<%= form.text_field :email %>
<% else %>
<%= form.label :email, "Unconfirmed Email" %>
<%= text_field_tag :email, user.confirmable_email, disabled: true %>
<%= form.label :confirm, "Confirm?" %>
<%= form.check_box :confirm %>
<% end %>
<%= form.label :name %>
<%= form.text_field :name %>
<%= form.label :admin %>
<%= form.check_box :admin %>
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
<% end %>