diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index e952e1325..a31251c11 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -12,4 +12,12 @@ class StartController < ApplicationController type: "application/pdf", ) end + + def download_22_23_sales_form + send_file( + Rails.root.join("public/files/2022_23_sales_paper_form.pdf"), + filename: "2022-23 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 48df3bf6a..289c0c7f1 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -28,4 +28,13 @@ metadata: "PDF, 421 KB, 8 pages", }, ]) %> + +

Sales 22/23

+ <%= render DocumentListComponent.new(items: [ + { + name: "Sales log for buyers (2022/23)", + href: download_22_23_sales_form_path, + metadata: "PDF, 397 KB, 5 pages", + }, + ]) %> diff --git a/config/routes.rb b/config/routes.rb index f997929d4..327a0b4c2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -36,6 +36,7 @@ Rails.application.routes.draw do get "/privacy-notice", to: "content#privacy_notice" get "/data-sharing-agreement", to: "content#data_sharing_agreement" get "/download-23-24-sales-form", to: "start#download_23_24_sales_form" + get "/download-22-23-sales-form", to: "start#download_22_23_sales_form" resource :account, only: %i[show edit], controller: "users" do get "edit/password", to: "users#edit_password" diff --git a/public/files/2022_23_sales_paper_form.pdf b/public/files/2022_23_sales_paper_form.pdf new file mode 100644 index 000000000..961350f37 Binary files /dev/null and b/public/files/2022_23_sales_paper_form.pdf differ