<commit_before><% content_for(:page_title, t('service.title', page_title: 'Your appointment summary')) %>
<% content_for(:meta_description, 'View, print or download a summary of your Pension Wise appointment') %>

<h1>Your appointment summary</h1>
<p>Your appointment summary is below. You can download or print the summary.</p>

<div class="fixed-panel js-fixed-panel hide-from-print">
  <div class="fixed-panel__button">
    <%= form_for @appointment_summary, url: download_appointment_summaries_path do |f| %>

      <% [*SUPPLEMENTARY_OPTIONS, :appointment_type].each do |field| %>
        <%= f.hidden_field field %>
      <% end %>

      <%= f.submit 'Download', class: %w(button t-save-summary-as-pdf) %>
    <% end %>
  </div>

  <div class="fixed-panel__button">
    <%= form_for @appointment_summary, url: print_appointment_summaries_path, html: { target: "_blank" } do |f| %>
      <% [*SUPPLEMENTARY_OPTIONS, :appointment_type].each do |field| %>
        <%= f.hidden_field field %>
      <% end %>

      <%= f.submit 'Print', class: %w(button t-print-summary) %>
    <% end %>
  </div>
</div>

<div class="summary-document t-summary-document t-summary-document--<%= appointment_type %>">
  <%= @content.html_safe %>
</div>

<script>
  window.dataLayer = window.dataLayer || [];
  dataLayer.push({
    'appointment_type': '<%= appointment_type %>'
  });
</script>

<% content_for :sticky_sidebar do %>
  <div class="l-sticky-sidebar"><commit_msg>Namespacing IDs for form elements<commit_after><% content_for(:page_title, t('service.title', page_title: 'Your appointment summary')) %>
<% content_for(:meta_description, 'View, print or download a summary of your Pension Wise appointment') %>

<h1>Your appointment summary</h1>
<p>Your appointment summary is below. You can download or print the summary.</p>

<div class="fixed-panel js-fixed-panel hide-from-print">
  <div class="fixed-panel__button">
    <%= form_for @appointment_summary, url: download_appointment_summaries_path, html: { id: 'download_form' }, namespace: 'download' do |f| %>

      <% [*SUPPLEMENTARY_OPTIONS, :appointment_type].each do |field| %>
        <%= f.hidden_field field %>
      <% end %>

      <%= f.submit 'Download', class: %w(button t-save-summary-as-pdf) %>
    <% end %>
  </div>

  <div class="fixed-panel__button">
    <%= form_for @appointment_summary, url: print_appointment_summaries_path, html: { target: '_blank', id: 'print_form' }, namespace: 'print' do |f| %>
      <% [*SUPPLEMENTARY_OPTIONS, :appointment_type].each do |field| %>
        <%= f.hidden_field field %>
      <% end %>

      <%= f.submit 'Print', class: %w(button t-print-summary) %>
    <% end %>
  </div>
</div>

<div class="summary-document t-summary-document t-summary-document--<%= appointment_type %>">
  <%= @content.html_safe %>
</div>

<script>
  window.dataLayer = window.dataLayer || [];
  dataLayer.push({
    'appointment_type': '<%= appointment_type %>'
  });
</script>

<% content_for :sticky_sidebar do %>
  <div class="l-sticky-sidebar">
{'fraction_non_alphanumeric': 0.17315303430079157, 'fraction_numerical': 0.0013192612137203166, 'mean_word_length': 4.175767918088737, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3825353', 'n_tokens_mistral': 1068, 'n_tokens_neox': 988, 'n_words': 222}