% content_for :title, "Change your personal details" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: 'Back',
href: :back,
) %>
<% end %>
<%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %>
<%= f.govuk_error_summary %>
<%= content_for(:title) %>
<%= f.govuk_text_field :name,
autocomplete: "name"
%>
<%= f.govuk_email_field :email,
label: { text: "Email address" },
autocomplete: "email"
%>
<%= f.govuk_submit "Save changes" %>
<% end %>