diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index d707d3e91..671b63805 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -28,4 +28,44 @@ class StartController < ApplicationController type: "application/pdf", ) end + + def download_23_24_lettings_bulk_upload_template + send_file( + Rails.root.join("public/files/bulk-upload-lettings-template-2023-24.xlsx"), + filename: "2023-24-lettings-bulk-upload-template.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end + + def download_23_24_lettings_bulk_upload_legacy_template + send_file( + Rails.root.join("public/files/bulk-upload-lettings-legacy-template-2023-24.xlsx"), + filename: "2023-24-lettings-bulk-upload-legacy-template.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end + + def download_23_24_lettings_bulk_upload_specification + send_file( + Rails.root.join("public/files/bulk-upload-lettings-specification-2023-24.xlsx"), + filename: "2023-24-lettings-bulk-upload-specification.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end + + def download_22_23_lettings_bulk_upload_template + send_file( + Rails.root.join("public/files/bulk-upload-lettings-template-2022-23.xlsx"), + filename: "2022-23-lettings-bulk-upload-template.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end + + def download_22_23_lettings_bulk_upload_specification + send_file( + Rails.root.join("public/files/bulk-upload-lettings-specification-2022-23.xlsx"), + filename: "2022-23-lettings-bulk-upload-specification.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end end diff --git a/app/views/layouts/_collection_resources.html.erb b/app/views/layouts/_collection_resources.html.erb index 37e9c4b94..f583bd813 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -9,6 +9,21 @@ href: download_23_24_lettings_form_path, metadata: "PDF, 278 KB, 8 pages", }, + { + name: "Lettings bulk upload template (2023/24) *new question ordering*", + href: download_23_24_lettings_bulk_upload_template_path, + metadata: "Microsoft Excel, 15 KB", + }, + { + name: "Lettings bulk upload template (2023/24)", + href: download_23_24_lettings_bulk_upload_legacy_template_path, + metadata: "Microsoft Excel, 15 KB", + }, + { + name: "Lettings bulk upload specification (2023/24)", + href: download_23_24_lettings_bulk_upload_specification_path, + metadata: "Microsoft Excel, 90 KB", + }, ]) %>