<% content_for :title, "Download CSV" %>

<% content_for :before_content do %>
  <%= govuk_back_link(href: :back) %>
<% end %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">
    <h1 class="govuk-heading-l">Download CSV</h2>

    <p class="govuk-body">We'll send a secure download link to your email address <strong><%= @current_user.email %></strong>.</p>
    <p class="govuk-body">You've selected <%= count %> logs.</p>

    <%= govuk_button_to "Send email", post_path, method: :post, params: { search: search_term, codes_only: } %>
  </div>
</div>