You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
39 lines
1.6 KiB
<% content_for :title, "Review lettings log" %> |
|
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { |
|
"Logs" => "/logs", |
|
"Log #{@case_log.id.to_s}" => "/logs/" + @case_log.id.to_s, |
|
"Review lettings log" => "" |
|
}) %> |
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds-from-desktop"> |
|
<h1 class="govuk-heading-xl"> |
|
<%= content_for(:title) %> |
|
</h1> |
|
<% @case_log.form.sections.map do |section| %> |
|
<h2 class="govuk-heading-m"><%= section.label %></h2> |
|
<% section.subsections.map do |subsection| %> |
|
<div class="x-govuk-summary-card govuk-!-margin-bottom-6"> |
|
<div class="x-govuk-summary-card__header"> |
|
<h3 class="x-govuk-summary-card__title"><%= subsection.label %></h3> |
|
</div> |
|
<div class="x-govuk-summary-card__body"> |
|
<dl class="govuk-summary-list"> |
|
<% subsection.applicable_questions(@case_log).each do |question| %> |
|
<%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %> |
|
<% end %> |
|
</dl> |
|
</div> |
|
</div> |
|
<% end %> |
|
<% end %> |
|
<div class="govuk-inset-text"> |
|
You can submit changes to this log until the close of the current collection year, 31 March 2022. |
|
</div> |
|
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %> |
|
<%= f.govuk_submit "Submit lettings log", accesskey: "s" %> |
|
<% end %> |
|
</div> |
|
</div> |
|
<% end %> |