Sha256: 9b9c06311271dacf9101eca8b6141871d745b635fe3776afd681cefd231d7cef

Contents?: true

Size: 950 Bytes

Versions: 70

Compression:

Stored size: 950 Bytes

Contents

<%
  add_gem_component_stylesheet("button")
  add_gem_component_stylesheet("feedback")

  def utf_encode(element)
    element.is_a?(String) ? element.encode : element
  end

  email_regex = /[^\s=\/?&]+(?:@|%40)[^\s=\/?&]+/
  url_without_pii = utf_encode(request.original_url.gsub(email_regex, '[email]'))
  path_without_pii = utf_encode(request.fullpath.gsub(email_regex, '[email]'))

  disable_ga4 ||= false
  data_module = "feedback"
  data_module << " ga4-event-tracker" unless disable_ga4
%>

<div class="gem-c-feedback govuk-!-display-none-print" data-module="<%= data_module %>">
  <%= render "govuk_publishing_components/components/feedback/yes_no_banner", disable_ga4: %>
  <%= render "govuk_publishing_components/components/feedback/problem_form", url_without_pii: url_without_pii, disable_ga4: %>
  <%= render "govuk_publishing_components/components/feedback/survey_signup_form", path_without_pii: path_without_pii, disable_ga4: %>
</div>

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
govuk_publishing_components-45.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-45.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.11.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.10.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.9.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.9.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.8.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.7.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.7.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.6.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.5.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.4.2 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.4.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.4.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.3.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.2.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-44.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.5.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.4.1 app/views/govuk_publishing_components/components/_feedback.html.erb