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", + }, ]) %>

Lettings 22/23

@@ -18,6 +33,16 @@ href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2022-23%20Lettings%20paper%20form.pdf?download-format=pdf", metadata: "PDF, 654 KB, 4 pages", }, + { + name: "Lettings bulk upload template (2022/23)", + href: download_22_23_lettings_bulk_upload_template_path, + metadata: "Microsoft Excel, 36 KB", + }, + { + name: "Lettings bulk upload specification (2022/23)", + href: download_22_23_lettings_bulk_upload_specification_path, + metadata: "Microsoft Excel, 53 KB", + }, ]) %>

Sales 23/24

diff --git a/config/routes.rb b/config/routes.rb index 95dcb21a3..e9542ebec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,9 +35,17 @@ 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 "/download-23-24-lettings-form", to: "start#download_23_24_lettings_form" + get "/download-23-24-lettings-bulk-upload-template", to: "start#download_23_24_lettings_bulk_upload_template" + get "/download-23-24-lettings-bulk-upload-legacy-template", to: "start#download_23_24_lettings_bulk_upload_legacy_template" + get "/download-23-24-lettings-bulk-upload-specification", to: "start#download_23_24_lettings_bulk_upload_specification" + + get "/download-22-23-lettings-bulk-upload-template", to: "start#download_22_23_lettings_bulk_upload_template" + get "/download-22-23-lettings-bulk-upload-specification", to: "start#download_22_23_lettings_bulk_upload_specification" + 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/bulk-upload-lettings-legacy-template-2023-24.xlsx b/public/files/bulk-upload-lettings-legacy-template-2023-24.xlsx new file mode 100644 index 000000000..22b630cd3 Binary files /dev/null and b/public/files/bulk-upload-lettings-legacy-template-2023-24.xlsx differ