|
|
|
@ -30,10 +30,10 @@
|
|
|
|
|
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %> |
|
|
|
|
<%= f.govuk_error_summary %> |
|
|
|
|
<% @page.questions.map do |question| %> |
|
|
|
|
<% if question.read_only? %> |
|
|
|
|
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> |
|
|
|
|
<% end %> |
|
|
|
|
<div id=<%= question.id + "_div " %><%= display_question_key_div(@page, question) %> > |
|
|
|
|
<% if question.read_only? %> |
|
|
|
|
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> |
|
|
|
|
<% end %> |
|
|
|
|
<%= render partial: "form/#{question.type}_question", locals: { question: question, caption: @subsection.label, page_header: @page.header, f: f } %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|