pg_layout/app/views/devise/registrations/new.html.erb
<h2><%= t(".sign_up") %></h2>
<div id="form-signup" data-controller="pg_form">
<%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= f.mensajes_de_error %>
<div class="form-inputs">
<%= f.input :nombre, required: true, autofocus: true %>
<%= f.input :apellido, required: true %>
<%= f.input :email,
required: true,
input_html: { autocomplete: "email" }%>
<%= f.input :password,
required: true,
hint: (t('devise.shared.minimum_password_length', count: @minimum_password_length) if @minimum_password_length),
input_html: { autocomplete: "new-password" } %>
<%= f.input :password_confirmation,
required: true,
input_html: { autocomplete: "new-password" } %>
</div>
<div class="form-actions">
<%= f.button :submit, t(".sign_up") %>
</div>
<% end %>
<%= render "devise/shared/links" %>
</div>