@ -46,4 +46,9 @@ module FormPageHelper
page.skip_href(log) || send(log.form.next_page_redirect_path(page, log, current_user, ignore_answered: true), log)
end
def manual_address_link(log)
base_url = send("#{log.log_type}_url", log)
"#{base_url}/address"
@ -15,13 +15,4 @@ class Form::Lettings::Pages::AddressSearch < ::Form::Page
]
def skip_text
"Enter the address manually instead"
def skip_href(log = nil)
return unless log
"address"
@ -14,14 +14,4 @@ class Form::Sales::Pages::AddressSearch < ::Form::Page
Form::Sales::Questions::AddressSearch.new(nil, nil, self),
@ -22,3 +22,7 @@
<% end %>
<%= render partial: "form/guidance/#{question.bottom_guidance_partial}" if question.bottom_guidance? %>
<div class="govuk-button-group">
<%= govuk_link_to "Enter the address manually instead" , manual_address_link(@log), class: "govuk-button govuk-button--secondary" %>
</div>