|
|
@ -6,6 +6,9 @@ |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
|
|
|
|
<h1 class="govuk-heading-xl"> |
|
|
|
|
|
|
|
<%= page_info["header"] %> |
|
|
|
|
|
|
|
</h1> |
|
|
|
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> |
|
|
|
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> |
|
|
|
<% page_info["questions"].map do |question_key, question| %> |
|
|
|
<% page_info["questions"].map do |question_key, question| %> |
|
|
|
<%= render partial: "form/#{question["type"]}_question", locals: { case_log_id: case_log_id, question_key: question_key, question: question, f: f } %> |
|
|
|
<%= render partial: "form/#{question["type"]}_question", locals: { case_log_id: case_log_id, question_key: question_key, question: question, f: f } %> |
|
|
|