Browse Source

Move divider into the display question key div

pull/230/head
Kat 3 years ago
parent
commit
d5cab7819a
  1. 6
      app/views/form/page.html.erb

6
app/views/form/page.html.erb

@ -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 %>

Loading…
Cancel
Save