- <%= render("shared/error_summary", instance: @form) if @form.errors.any? %>
+ <%= form_for @form, url: claim_path(current_journey_routing_name), builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
+ <%= f.govuk_error_summary %>
- <%= form_for @form, url: claim_path(current_journey_routing_name) do |form| %>
<% if @form.errors.any? %>
-
+ <%= govuk_button_link_to I18n.t("questions.address.home.link_to_manual_address"), claim_path(current_journey_routing_name, "address"), "aria-label": I18n.t("questions.address.home.link_to_manual_address") %>
+ <% end %>
<% else %>
-
- <%= form.submit "Search", class: "govuk-button" %>
+ <%= f.govuk_submit "Search" %>
<% end %>
<% end %>