diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index d09934cbc..387456876 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -4,4 +4,12 @@ class StartController < ApplicationController redirect_to(lettings_logs_path) end end + + def download_pdf + send_file( + Rails.root.join("public/files/2023_24_sales_paper_form.pdf"), + filename: "2023-24 Sales paper form.pdf", + type: "application/pdf", + ) + end end diff --git a/app/views/layouts/_collection_resources.html.erb b/app/views/layouts/_collection_resources.html.erb index 726cd1a86..3bd7f71de 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -19,4 +19,13 @@ metadata: "PDF, 654 KB, 4 pages", }, ]) %> + +

Sales 23/24

+ <%= render DocumentListComponent.new(items: [ + { + name: "Sales log for buyers (2023/24)", + href: start_download_pdf_path, + metadata: "PDF, 421 KB, 8 pages", + }, + ]) %> diff --git a/config/routes.rb b/config/routes.rb index 02a9cb707..8fe1bcf32 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,6 +35,7 @@ Rails.application.routes.draw do get "/accessibility-statement", to: "content#accessibility_statement" get "/privacy-notice", to: "content#privacy_notice" get "/data-sharing-agreement", to: "content#data_sharing_agreement" + get "start/download_pdf" resource :account, only: %i[show edit], controller: "users" do get "edit/password", to: "users#edit_password" diff --git a/public/files/2023_24_sales_paper_form.pdf b/public/files/2023_24_sales_paper_form.pdf new file mode 100644 index 000000000..327c90ab8 Binary files /dev/null and b/public/files/2023_24_sales_paper_form.pdf differ