You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
<% 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-full"> |
|
<h1 class="govuk-heading-l">Download CSV</h1> |
|
|
|
<p class="govuk-body">We'll send a secure download link to your email address <strong><%= @current_user.email %></strong>.</p> |
|
<% if count.positive? %> |
|
<p class="govuk-body">You've selected <%= count %> logs.</p> |
|
<% else %> |
|
<p class="govuk-body">You haven't selected any logs. Please check your filters</p> |
|
<% end %> |
|
|
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-three-quarters-from-desktop"> |
|
<h1 class="govuk-heading-l"> |
|
Check your filters |
|
</h1> |
|
|
|
<%= govuk_summary_list do |summary_list| %> |
|
<% check_your_answers_lettings_filters_list(session_filters).each do |filter| %> |
|
<% summary_list.with_row do |row| %> |
|
<% row.with_key { filter[:label] } %> |
|
<% row.with_value do %> |
|
<%= simple_format( |
|
filter[:value], |
|
wrapper_tag: "span", |
|
class: "govuk-!-margin-right-4", |
|
) %> |
|
<% end %> |
|
|
|
<% row.with_action( |
|
text: "Change", |
|
href: "#{filter[:path]}?search=#{search_term}&codes_only=#{codes_only}", |
|
) %> |
|
<% end %> |
|
<% end %> |
|
<% end %> |
|
</div> |
|
</div> |
|
<% if count.positive? %> |
|
<%= govuk_button_to "Send email", post_path, method: :post, params: { search: search_term, codes_only: } %> |
|
<% end %> |
|
</div> |
|
</div>
|
|
|