Skip to content

Commit

Permalink
AP-4774: Remove hidden element from cookies page
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldstone93 committed Jan 30, 2024
1 parent 49fe96f commit ff79e0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions app/views/providers/cookies/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
<p class="govuk-body"><%= t(".cookies_are_files") %></p>
<p class="govuk-body"><%= t(".we_use_cookies") %></p>

<h2 class="govuk-heading-m"><%= t(".heading_2") %></h2>
<p class="govuk-body"><%= t(".we_use_ga") %></p>
<p class="govuk-body"><%= t(".we_do_not_allow") %></p>
<p class="govuk-body"><%= t(".google_analytics") %></p>
<%= form.govuk_radio_buttons_fieldset :cookies_enabled,
legend: { size: "m", tag: "h2", text: t(".heading_2") } do %>

<%= list_from_translation_path(".cookies.show") %>
<p class="govuk-body"><%= t(".we_use_ga") %></p>
<p class="govuk-body"><%= t(".we_do_not_allow") %></p>
<p class="govuk-body"><%= t(".google_analytics") %></p>

<div class="govuk-!-padding-2"></div>
<%= list_from_translation_path(".cookies.show") %>

<div class="govuk-!-padding-2"></div>

<%= form.govuk_radio_buttons_fieldset :cookies_enabled,
legend: { size: "m", tag: "h2", text: t(".heading_2"), hidden: true } do %>
<%= form.govuk_radio_button :cookies_enabled, true, link_errors: true, label: { text: t(".use_this_cookie") } %>
<%= form.govuk_radio_button :cookies_enabled, false, label: { text: t(".do_not_use") } %>
<% end %>
Expand All @@ -43,9 +43,7 @@
<p class="govuk-body"><%= t(".these_essential_cookies") %></p>
<p class="govuk-body"><%= t(".they_always_need") %></p>

<p class='govuk-body'><%= govuk_link_to(t(".find_out_more_link"), "https://www.gov.uk/help/cookie-details") %></p>

<div class="govuk-!-padding-2"></div>
<p class='govuk-body govuk-!-padding-bottom-2'><%= govuk_link_to(t(".find_out_more_link"), "https://www.gov.uk/help/cookie-details") %></p>

<%= form.govuk_submit(t(".save_changes_btn")) %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ en:
heading_2: Cookies that measure website use
we_use_ga: We use Google Analytics to measure how you use the service so we can improve it based on user needs.
we_do_not_allow: We do not allow Google to use or share the data about how you use this site.
google_analytics: Google Analytics sets cookies that store anonymised information about
google_analytics: "Google Analytics sets cookies that store anonymised information about:"
list: |
how you got to the site
the pages you visit on Apply for legal aid, and how long you spend on each page
Expand Down

0 comments on commit ff79e0d

Please sign in to comment.