Browse Source

CLDC-1887 Update links to bulk upload assets (#1566)

# Context

- https://digital.dclg.gov.uk/jira/browse/CLDC-1887

# Changes

- Update links to bulk upload assets
pull/1573/head
Phil Lee 2 years ago committed by GitHub
parent
commit
fae0481227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 40
      app/controllers/start_controller.rb
  2. 25
      app/views/layouts/_collection_resources.html.erb
  3. 10
      config/routes.rb
  4. BIN
      public/files/bulk-upload-lettings-legacy-template-2023-24.xlsx

40
app/controllers/start_controller.rb

@ -28,4 +28,44 @@ class StartController < ApplicationController
type: "application/pdf", type: "application/pdf",
) )
end 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 end

25
app/views/layouts/_collection_resources.html.erb

@ -9,6 +9,21 @@
href: download_23_24_lettings_form_path, href: download_23_24_lettings_form_path,
metadata: "PDF, 278 KB, 8 pages", 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",
},
]) %> ]) %>
<h2 class="govuk-body-l govuk-!-margin-bottom-3">Lettings 22/23</h2> <h2 class="govuk-body-l govuk-!-margin-bottom-3">Lettings 22/23</h2>
@ -18,6 +33,16 @@
href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2022-23%20Lettings%20paper%20form.pdf?download-format=pdf", 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", 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",
},
]) %> ]) %>
<h2 class="govuk-body-l govuk-!-margin-bottom-3">Sales 23/24</h2> <h2 class="govuk-body-l govuk-!-margin-bottom-3">Sales 23/24</h2>

10
config/routes.rb

@ -35,9 +35,17 @@ Rails.application.routes.draw do
get "/accessibility-statement", to: "content#accessibility_statement" get "/accessibility-statement", to: "content#accessibility_statement"
get "/privacy-notice", to: "content#privacy_notice" get "/privacy-notice", to: "content#privacy_notice"
get "/data-sharing-agreement", to: "content#data_sharing_agreement" 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-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-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 resource :account, only: %i[show edit], controller: "users" do
get "edit/password", to: "users#edit_password" get "edit/password", to: "users#edit_password"

BIN
public/files/bulk-upload-lettings-legacy-template-2023-24.xlsx

Binary file not shown.
Loading…
Cancel
Save