Sha256: ccd544f4f148eafd488a2e19306250fc49f64344f79b90fafaa4612854f41a3f

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

<form action="/contact/govuk/email-survey-signup"
  id="page-is-not-useful"
  class="gem-c-feedback__form gem-c-feedback__form--email gem-c-feedback__js-show js-feedback-form"
  data-track-category="yesNoFeedbackForm"
  data-track-action="Send Form"
  method="post">

  <div class="govuk-grid-row">
    <div class="govuk-grid-column-two-thirds" id="survey-wrapper">
      <div class="gem-c-feedback__error-summary js-errors" tabindex="-1" hidden></div>

      <input name="email_survey_signup[survey_id]" type="hidden" value="footer_satisfaction_survey">
      <input name="email_survey_signup[survey_source]" type="hidden" value="<%= path_without_pii %>">

      <h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk") %></h3>
      <p id="survey_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.more_about_visit") %></p>

      <%= render "govuk_publishing_components/components/input", {
        label: {
          text: t("components.feedback.email_address")
        },
        name: "email_survey_signup[email_address]",
        type: "email",
        autocomplete: "email",
        describedby: "survey_explanation"
      } %>

      <%= render "govuk_publishing_components/components/button", {
        text: t("components.feedback.send_me_survey"),
        data_attributes: {
          ga4: {
            event_name: "form_submit",
            type: "feedback",
            text: "Send me the survey",
            section: "Help us improve GOV.UK",
          }
        }
      } %>

      <button
        class="govuk-button govuk-button--secondary gem-c-feedback__close js-close-form"
        data-track-category="yesNoFeedbackForm"
        data-track-action="ffFormClose"
        aria-controls="page-is-not-useful"
        aria-expanded="true"
        hidden>
        <%= t("components.feedback.close") %>
      </button>

    </div>
  </div>
</form>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_publishing_components-33.0.0 app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb
govuk_publishing_components-32.1.0 app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb
govuk_publishing_components-32.0.0 app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb