Browse Source

Fix typo and add missing paths

pull/1671/head
Kat 3 years ago
parent
commit
f0222d35d0
  1. 16
      app/controllers/start_controller.rb
  2. 2
      app/views/layouts/_collection_resources.html.erb

16
app/controllers/start_controller.rb

@ -92,4 +92,20 @@ class StartController < ApplicationController
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
def download_22_23_sales_bulk_upload_template
send_file(
Rails.root.join("public/files/bulk-upload-sales-template-2022-23.xlsx"),
filename: "2022-23-sales-bulk-upload-template.xlsx",
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
def download_22_23_sales_bulk_upload_specification
send_file(
Rails.root.join("public/files/bulk-upload-sales-specification-2022-23.xlsx"),
filename: "2022-23-sales-bulk-upload-specification.xlsx",
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
)
end
end

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

@ -83,7 +83,7 @@
},
{
name: "Sales bulk upload specification (2022/23)",
href: download_23_23_sales_bulk_upload_specification_path,
href: download_22_23_sales_bulk_upload_specification_path,
metadata: "Microsoft Excel, 24 KB",
},
]) %>

Loading…
Cancel
Save