Sha256: 45b471f6c98eb251ef40b16d72ed922151028a4312cdc1c4fd45db1c95385daa

Contents?: true

Size: 766 Bytes

Versions: 15

Compression:

Stored size: 766 Bytes

Contents

<%
  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]'))
%>

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
govuk_publishing_components-35.6.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.5.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.4.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.5 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.4 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.3 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.2 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.3.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.2.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.1.1 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.1.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-35.0.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-34.14.0 app/views/govuk_publishing_components/components/_feedback.html.erb
govuk_publishing_components-34.13.0 app/views/govuk_publishing_components/components/_feedback.html.erb