This reverts commit 22577c801a.
22577c801a
@ -46,9 +46,4 @@ 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,4 +15,13 @@ 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,4 +14,14 @@ class Form::Sales::Pages::AddressSearch < ::Form::Page
Form::Sales::Questions::AddressSearch.new(nil, nil, self),
@ -22,7 +22,3 @@
<% 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>