diff --git a/app/assets/stylesheets/check_records.scss b/app/assets/stylesheets/check_records.scss index 5d29f3e3..423b565d 100644 --- a/app/assets/stylesheets/check_records.scss +++ b/app/assets/stylesheets/check_records.scss @@ -112,3 +112,9 @@ h1 .govuk-tag { max-width: 100%; } } + +@media print { + .app__no-print { + display: none; + } +} diff --git a/app/views/check_records/teachers/show.html.erb b/app/views/check_records/teachers/show.html.erb index 27f5a895..6d3c99e9 100644 --- a/app/views/check_records/teachers/show.html.erb +++ b/app/views/check_records/teachers/show.html.erb @@ -39,6 +39,12 @@ <% @other_qualifications.each do |qualification| %> <%= render CheckRecords::QualificationSummaryComponent.new(qualification:) %> <% end %> + + <%= govuk_inset_text classes: "govuk-!-padding-bottom-2 govuk-!-padding-top-3 govuk-!-margin-bottom- govuk-!-margin-top-0 app__no-print" do %> +
+ You should review the terms and conditions before printing this page. You should dispose of the offline records you maintain once they have served their purpose. +
+ <% end %>
@@ -60,12 +66,12 @@ <% end %> <% if @teacher.date_of_birth.present? %> -
  • -

    Date of birth

    -
  • -
  • -

    <%= Date.parse(@teacher.date_of_birth).to_fs(:long) %>

    -
  • +
  • +

    Date of birth

    +
  • +
  • +

    <%= Date.parse(@teacher.date_of_birth).to_fs(:long) %>

    +
  • <% end %> <% if @teacher.previous_names.present? %> @@ -78,4 +84,4 @@ <% end %>
    - + \ No newline at end of file diff --git a/spec/system/check_records/user_searches_with_valid_last_name_and_dob_spec.rb b/spec/system/check_records/user_searches_with_valid_last_name_and_dob_spec.rb index c6f8e955..366e9dd8 100644 --- a/spec/system/check_records/user_searches_with_valid_last_name_and_dob_spec.rb +++ b/spec/system/check_records/user_searches_with_valid_last_name_and_dob_spec.rb @@ -30,6 +30,7 @@ then_i_see_mq_details then_i_see_previous_last_names and_a_viewed_timestamp_is_displayed + and_a_print_warning_is_displayed end private @@ -118,4 +119,8 @@ def and_a_search_timestamp_is_displayed def and_a_viewed_timestamp_is_displayed expect(page).to have_content "Viewed at #{@frozen_time.strftime("%-I:%M%P on %-d %B %Y")}" end + + def and_a_print_warning_is_displayed + expect(page).to have_content "You should dispose of the offline records" + end end