<commit_before><% content_for :extra_headers do %>
  <meta name="robots" content="noindex, nofollow" />
<% end %>

<%= render layout: 'base_page', locals: {
  main_class: 'transaction-done',
  title: "Thank you",
  publication: @publication,
  edition: @edition,
} do %>
  <% if @publication.promotion_choice == 'organ_donor' %>
    <div id="organ-donor-registration-promotion">
      <p>Please join the NHS Organ Donor Register.</p>
      <p>If you needed an organ transplant would you have one? If so please help others.</p>
      <p>If you live in Wales and want to be an organ donor, you don’t need to do anything. Find out about your choices for <a href="https://www.organdonation.nhs.uk/supporting-my-decision/welsh-legislation-what-it-means-for-me/" rel="external">organ donation in Wales</a>.</p>
      <p>
        <%= link_to 'Join', @publication.promotion_url,
              title: "Register to become an organ donor", rel: "external", class: "button", role: "button" %>
      </p>
    </div>
  <% elsif @publication.promotion_choice == 'register_to_vote' %>
    <div id="register-to-vote-promotion"
         data-module="auto-track-event"
         data-track-category="linkTrack"
         data-track-action="linkDisplayed"
         data-track-label="Register">
      <p>You must <a href="/register-to-vote">register to vote</a> by 7 June if you want to take part in the EU referendum. You can register online and it only takes 5 minutes.</p>
      <p>
        <%= link_to 'Register', @publication.promotion_url,
              title: "Register to vote", rel: "internal", class: "button", role: "button",
              data: {
                module: 'track-click',
                track: {
                  category: 'linkTrack', action: 'linkClicked', label: @publication.promotion_url
                }
              } %>
      </p>
    </div>
  <% end %>

  <h2 class="satisfaction-survey-heading">Satisfaction survey</h2>

  <form class="contact-form" action="/contact/govuk/service-feedback" method="post" id="completed-transaction-form">
    <input type="hidden" id="service_slug" name="service_feedback[slug]" value="<%= @publication.slug.gsub("done/", "") %>" />
    <input type="hidden" id="service_done_page_url" name="service_feedback[url]" value="<%= @publication.web_url %>" />
    <fieldset>
      <legend><h2>Overall, how did you feel about the service you received today?</h2></legend>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="very-satisfied" value="5">
      <label for="very-satisfied">Very satisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="satisfied" value="4">
      <label for="satisfied">Satisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="neither-satisfied-or-dissatisfied" value="3">
      <label for="neither-satisfied-or-dissatisfied">Neither satisfied or dissatisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="dissatisfied" value="2">
      <label for="dissatisfied">Dissatisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="very-dissatisfied" value="1">
      <label for="very-dissatisfied">Very dissatisfied</label>
    </fieldset><commit_msg>Use correct rails api for data attributes on register to vote promo<commit_after><% content_for :extra_headers do %>
  <meta name="robots" content="noindex, nofollow" />
<% end %>

<%= render layout: 'base_page', locals: {
  main_class: 'transaction-done',
  title: "Thank you",
  publication: @publication,
  edition: @edition,
} do %>
  <% if @publication.promotion_choice == 'organ_donor' %>
    <div id="organ-donor-registration-promotion">
      <p>Please join the NHS Organ Donor Register.</p>
      <p>If you needed an organ transplant would you have one? If so please help others.</p>
      <p>If you live in Wales and want to be an organ donor, you don’t need to do anything. Find out about your choices for <a href="https://www.organdonation.nhs.uk/supporting-my-decision/welsh-legislation-what-it-means-for-me/" rel="external">organ donation in Wales</a>.</p>
      <p>
        <%= link_to 'Join', @publication.promotion_url,
              title: "Register to become an organ donor", rel: "external", class: "button", role: "button" %>
      </p>
    </div>
  <% elsif @publication.promotion_choice == 'register_to_vote' %>
    <div id="register-to-vote-promotion"
         data-module="auto-track-event"
         data-track-category="linkTrack"
         data-track-action="linkDisplayed"
         data-track-label="Register">
      <p>You must <a href="/register-to-vote">register to vote</a> by 7 June if you want to take part in the EU referendum. You can register online and it only takes 5 minutes.</p>
      <p>
        <%= link_to 'Register', @publication.promotion_url,
              title: "Register to vote", rel: "internal", class: "button", role: "button",
              data: {
                module: 'track-click',
                track_category: 'linkTrack',
                track_action: 'linkClicked',
                track_label: @publication.promotion_url
              } %>
      </p>
    </div>
  <% end %>

  <h2 class="satisfaction-survey-heading">Satisfaction survey</h2>

  <form class="contact-form" action="/contact/govuk/service-feedback" method="post" id="completed-transaction-form">
    <input type="hidden" id="service_slug" name="service_feedback[slug]" value="<%= @publication.slug.gsub("done/", "") %>" />
    <input type="hidden" id="service_done_page_url" name="service_feedback[url]" value="<%= @publication.web_url %>" />
    <fieldset>
      <legend><h2>Overall, how did you feel about the service you received today?</h2></legend>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="very-satisfied" value="5">
      <label for="very-satisfied">Very satisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="satisfied" value="4">
      <label for="satisfied">Satisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="neither-satisfied-or-dissatisfied" value="3">
      <label for="neither-satisfied-or-dissatisfied">Neither satisfied or dissatisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="dissatisfied" value="2">
      <label for="dissatisfied">Dissatisfied</label>
      <br />
      <input type="radio" required name="service_feedback[service_satisfaction_rating]" id="very-dissatisfied" value="1">
      <label for="very-dissatisfied">Very dissatisfied</label>
    </fieldset>
{'fraction_non_alphanumeric': 0.14958809076456137, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 3.5919044459190443, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4929966', 'n_tokens_mistral': 2227, 'n_tokens_neox': 2069, 'n_words': 503}