diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index a31251c11..d707d3e91 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -20,4 +20,12 @@ class StartController < ApplicationController type: "application/pdf", ) end + + def download_23_24_lettings_form + send_file( + Rails.root.join("public/files/2023_24_lettings_paper_form.pdf"), + filename: "2023-24 Lettings 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 289c0c7f1..37e9c4b94 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -6,8 +6,8 @@ <%= render DocumentListComponent.new(items: [ { name: "Lettings log for tenants (2023/24)", - href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2023-24%20Lettings%20paper%20form.pdf?download-format=pdf", - metadata: "PDF, 281 KB, 8 pages", + href: download_23_24_lettings_form_path, + metadata: "PDF, 278 KB, 8 pages", }, ]) %> diff --git a/config/routes.rb b/config/routes.rb index 327a0b4c2..9c66098d7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -37,6 +37,7 @@ Rails.application.routes.draw do 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" + get "/download-23-24-lettings-form", to: "start#download_23_24_lettings_form" resource :account, only: %i[show edit], controller: "users" do get "edit/password", to: "users#edit_password" diff --git a/public/files/2023_24_lettings_paper_form.pdf b/public/files/2023_24_lettings_paper_form.pdf new file mode 100644 index 000000000..787e3b3b8 Binary files /dev/null and b/public/files/2023_24_lettings_paper_form.pdf differ