Browse Source

CLDC-4241: add comment to explain unusual code order

pull/3193/head
Nat Dean-Lewis 3 weeks ago
parent
commit
ac283c00e9
  1. 1
      app/views/form/page.html.erb

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

@ -76,6 +76,7 @@
<% end %>
<% if @pages_with_errors_count > 1 %>
<%# Hidden form submit ensures pressing Enter triggers "Save and continue" rather than "See all related answers" as the user would expect %>
<%= f.submit submit_button_text(@page, request.query_parameters["referrer"]), class: "govuk-visually-hidden", tabindex: -1, "aria-hidden": true %>
<div class="govuk-button-group">
<%= f.submit "See all related answers", name: "check_errors", class: "govuk-body govuk-link submit-button-link" %>

Loading…
Cancel
Save