
  <%= form_with(model: @user, local: true, class: "space-y-4") do |f| %>
    <%= render 'shared/error_messages' %>

    <div class="form-control">
      <%= f.label :name, class: "label" do %>
        <span class="label-text">Name</span>
      <% end %>
      <%= f.text_field :name, class: "input input-bordered w-full" %>
    </div>

    <div class="form-control">
      <%= f.label :email, class: "label" do %>
        <span class="label-text">Email</span>
      <% end %>
      <%= f.email_field :email, class: "input input-bordered w-full" %>
    </div>

    <div class="form-control">
      <%= f.label :password, class: "label" do %>
        <span class="label-text">Password</span>
      <% end %>
      <%= f.password_field :password, class: "input input-bordered w-full" %>
    </div>

    <div class="form-control">
      <%= f.label :password_confirmation, class: "label" do %>
        <span class="label-text">Confirmation</span>
      <% end %>
      <%= f.password_field :password_confirmation, class: "input input-bordered w-full" %>
    </div>

    <div class="form-control mt-6">
      <%= f.submit yield(:button_text), class: "btn btn-primary mb-6" %>
    </div>
  <% end %>