<% content_for :title, @page.header.presence || @page.questions.first.header.html_safe %> <% content_for :before_content do %> <%= govuk_back_link( text: "Back", href: "javascript:history.back()", ) %> <% end %>
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post", local: true do |f| %>
"> <% remove_other_page_errors(@case_log, @page) %> <%= f.govuk_error_summary %> <% if @page.header.present? %>

<% if !@page.hide_subsection_label %> <%= @subsection.label %> <% end %> <%= @page.header %>

<% end %> <% if @page.description.present? %>

<%= @page.description.html_safe %>

<% end %> <% @page.non_conditional_questions.map do |question| %>
> <% if question.read_only? %>
<% end %> <% if question.type == "interruption_screen" %> <%= render partial: "form/#{question.type}_question", locals: { question:, caption_text: @subsection.label, page_header: @page.header, case_log: @case_log, title_text: @page.title_text, informative_text: @page.informative_text, form: @form, f:, conditional: false } %> <% else %> <%= render partial: "form/#{question.type}_question", locals: { question:, caption_text: @subsection.label, page_header: @page.header, case_log: @case_log, f:, conditional: false } %> <% end %>
<% end %> <%= f.hidden_field :page, value: @page.id %> <% if !@page.id.include?("value_check") %> <%= f.govuk_submit "Save and continue", accesskey: "s" %> <% end %>
<% end %>