<% 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| %>
<%= display_question_key_div(@page, question) %> >
<% if question.read_only? %>
<% end %>
<%= render partial: "form/#{question.type}_question", locals: { question: question, caption_text: @subsection.label, page_header: @page.header, case_log: @case_log, f: f, conditional: false } %>
<% end %>
<% if @page.has_soft_validations? %>
<%= render partial: "form/validation_override_question", locals: { f: f, page: @page } %>
<% end %>
<%= f.hidden_field :page, value: @page.id %>
<% if @case_log.form.is_last_question?(@page, @subsection, @case_log) %>
<%= f.govuk_submit "Submit lettings log", accesskey: "s" %>
<%else %>
<%= f.govuk_submit "Save and continue", accesskey: "s" %>
<%end %>