% content_for :head do %> <% end %> <% content_for :title, @page.header.present? ? @page.header : @page.questions.first().header.html_safe %> <% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: 'javascript:history.back()', ) %> <% end %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %><%= @page.description.html_safe %>
<% end %> <%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %> <% remove_other_page_errors(@case_log, @page) %> <%= f.govuk_error_summary %> <% @page.non_conditional_questions.map do |question| %>