Browse Source

Update sales 23/24 resources

pull/1671/head
Kat 3 years ago
parent
commit
7d24cc0fca
  1. 24
      app/controllers/start_controller.rb
  2. 17
      app/views/layouts/_collection_resources.html.erb
  3. 3
      config/routes.rb
  4. BIN
      public/files/bulk-upload-sales-legacy-template-2023-24.xlsx
  5. BIN
      public/files/bulk-upload-sales-specification-2023-24.xlsx
  6. BIN
      public/files/bulk-upload-sales-template-2023-24.xlsx

24
app/controllers/start_controller.rb

@ -53,6 +53,30 @@ class StartController < ApplicationController
) )
end end
def download_23_24_sales_bulk_upload_template
send_file(
Rails.root.join("public/files/bulk-upload-sales-template-2023-24.xlsx"),
filename: "2023-24-sales-bulk-upload-template.xlsx",
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
def download_23_24_sales_bulk_upload_legacy_template
send_file(
Rails.root.join("public/files/bulk-upload-sales-legacy-template-2023-24.xlsx"),
filename: "2023-24-sales-bulk-upload-legacy-template.xlsx",
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
def download_23_24_sales_bulk_upload_specification
send_file(
Rails.root.join("public/files/bulk-upload-sales-specification-2023-24.xlsx"),
filename: "2023-24-sales-bulk-upload-specification.xlsx",
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
def download_22_23_lettings_bulk_upload_template def download_22_23_lettings_bulk_upload_template
send_file( send_file(
Rails.root.join("public/files/bulk-upload-lettings-template-2022-23.xlsx"), Rails.root.join("public/files/bulk-upload-lettings-template-2022-23.xlsx"),

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

@ -10,7 +10,7 @@
metadata: "PDF, 278 KB, 8 pages", metadata: "PDF, 278 KB, 8 pages",
}, },
{ {
name: "Lettings bulk upload template (2023/24) – New question ordering", name: "Lettings bulk upload template (2023/24) *new question ordering*",
href: download_23_24_lettings_bulk_upload_template_path, href: download_23_24_lettings_bulk_upload_template_path,
metadata: "Microsoft Excel, 15 KB", metadata: "Microsoft Excel, 15 KB",
}, },
@ -33,6 +33,21 @@
href: download_23_24_sales_form_path, href: download_23_24_sales_form_path,
metadata: "PDF, 421 KB, 8 pages", metadata: "PDF, 421 KB, 8 pages",
}, },
{
name: "Sales bulk upload template (2023/24) *new question ordering*",
href: download_23_24_sales_bulk_upload_template_path,
metadata: "Microsoft Excel, 21 KB",
},
{
name: "Sales bulk upload template (2023/24)",
href: download_23_24_sales_bulk_upload_legacy_template_path,
metadata: "Microsoft Excel, 21 KB",
},
{
name: "Sales bulk upload specification (2023/24)",
href: download_23_24_sales_bulk_upload_specification_path,
metadata: "Microsoft Excel, 38 KB",
},
]) %> ]) %>
<h3 class="govuk-heading-s">Lettings 2022/23</h3> <h3 class="govuk-heading-s">Lettings 2022/23</h3>

3
config/routes.rb

@ -46,6 +46,9 @@ Rails.application.routes.draw do
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-sales-bulk-upload-template", to: "start#download_23_24_sales_bulk_upload_template"
get "/download-23-24-sales-bulk-upload-legacy-template", to: "start#download_23_24_sales_bulk_upload_legacy_template"
get "/download-23-24-sales-bulk-upload-specification", to: "start#download_23_24_sales_bulk_upload_specification"
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-sales-legacy-template-2023-24.xlsx

Binary file not shown.

BIN
public/files/bulk-upload-sales-specification-2023-24.xlsx

Binary file not shown.

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

Binary file not shown.
Loading…
Cancel
Save