% content_for :title, current_user == @user ? "Change your personal details" : "Change #{@user.name}'s 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| %>