|
|
@ -14,8 +14,12 @@ |
|
|
|
<div data-controller="govukfrontend"></div> |
|
|
|
<div data-controller="govukfrontend"></div> |
|
|
|
|
|
|
|
|
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
|
|
|
|
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-column-two-thirds-from-desktop"> |
|
|
|
<div class="govuk-grid-column-two-thirds-from-desktop"> |
|
|
|
|
|
|
|
<% remove_other_page_errors(@case_log, @page) %> |
|
|
|
|
|
|
|
<%= f.govuk_error_summary %> |
|
|
|
|
|
|
|
|
|
|
|
<% if @page.header.present? %> |
|
|
|
<% if @page.header.present? %> |
|
|
|
<h1 class="govuk-heading-l"> |
|
|
|
<h1 class="govuk-heading-l"> |
|
|
|
<% if !@page.hide_subsection_label %> |
|
|
|
<% if !@page.hide_subsection_label %> |
|
|
@ -29,9 +33,6 @@ |
|
|
|
<p class="govuk-body govuk-body-m"><%= @page.description.html_safe %></p> |
|
|
|
<p class="govuk-body govuk-body-m"><%= @page.description.html_safe %></p> |
|
|
|
<% end %> |
|
|
|
<% 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| %> |
|
|
|
<% @page.non_conditional_questions.map do |question| %> |
|
|
|
<div id=<%= question.id + "_div " %><%= display_question_key_div(@page, question) %> > |
|
|
|
<div id=<%= question.id + "_div " %><%= display_question_key_div(@page, question) %> > |
|
|
|
<% if question.read_only? %> |
|
|
|
<% if question.read_only? %> |
|
|
@ -47,7 +48,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<%= f.hidden_field :page, value: @page.id %> |
|
|
|
<%= f.hidden_field :page, value: @page.id %> |
|
|
|
<%= f.govuk_submit "Save and continue" %> |
|
|
|
<%= f.govuk_submit "Save and continue" %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|