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-43.4.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.3.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.2.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-42.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-42.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-41.1.2 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-41.1.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-41.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-41.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-40.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-40.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-39.2.5 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-39.2.4 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-39.2.3 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-39.2.2 app/views/govuk_publishing_components/components/_feedback.html.erb