From 7f3811c8f1aa761bdad2de8a1c115903187e1338 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:08:55 +0000 Subject: [PATCH] Revert "Alternative way to handle js disabled users" This reverts commit 10da3d61e2f89ec29ef9f9071c63eb99aa2bb482. --- .../form/_address_search_question.html.erb | 52 +++++++------------ app/views/form/page.html.erb | 6 +-- 2 files changed, 19 insertions(+), 39 deletions(-) diff --git a/app/views/form/_address_search_question.html.erb b/app/views/form/_address_search_question.html.erb index 623fb14e3..6e27e5018 100644 --- a/app/views/form/_address_search_question.html.erb +++ b/app/views/form/_address_search_question.html.erb @@ -1,44 +1,28 @@ +<% selected = @log.public_send(question.id) || "" %> <% answers = question.displayed_answer_options(@log, current_user).map { |key, value| OpenStruct.new(id: key, name: select_option_name(value), resource: value) } %> <%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> - - - +<%= render partial: "form/guidance/#{question.bottom_guidance_partial}" if question.bottom_guidance? %>
<%= govuk_link_to "Enter the address manually instead", address_manual_input_path(@log.log_type, @log.id), class: "govuk-button govuk-button--secondary" %>
- - diff --git a/app/views/form/page.html.erb b/app/views/form/page.html.erb index adfabc290..7c56b2184 100644 --- a/app/views/form/page.html.erb +++ b/app/views/form/page.html.erb @@ -76,13 +76,9 @@ <% end %> <% if @page.id == "address" %> -