From 47f7d5374627f41254f6c82679bb9ddaf29d28df Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 5 Feb 2024 16:40:15 +0000 Subject: [PATCH] Update prepare your file and guidance pages --- .../bulk_upload_lettings/prepare_your_file.rb | 4 +++ .../bulk_upload_sales/prepare_your_file.rb | 5 ++- .../forms/prepare_your_file_2024.html.erb | 15 ++------- .../forms/prepare_your_file_2024.html.erb | 9 ++---- .../bulk_upload_shared/guidance.html.erb | 31 ++++++++++++------- 5 files changed, 34 insertions(+), 30 deletions(-) diff --git a/app/models/forms/bulk_upload_lettings/prepare_your_file.rb b/app/models/forms/bulk_upload_lettings/prepare_your_file.rb index a2d59a370..a2dfcd8e4 100644 --- a/app/models/forms/bulk_upload_lettings/prepare_your_file.rb +++ b/app/models/forms/bulk_upload_lettings/prepare_your_file.rb @@ -41,6 +41,8 @@ module Forms case year when 2023 "/files/bulk-upload-lettings-template-2023-24.xlsx" + when 2024 + "/files/bulk-upload-lettings-template-2024-25.xlsx" end end @@ -48,6 +50,8 @@ module Forms case year when 2023 "/files/bulk-upload-lettings-specification-2023-24.xlsx" + when 2024 + "/files/bulk-upload-lettings-specification-2024-25.xlsx" end end diff --git a/app/models/forms/bulk_upload_sales/prepare_your_file.rb b/app/models/forms/bulk_upload_sales/prepare_your_file.rb index 227137d72..f72e41d55 100644 --- a/app/models/forms/bulk_upload_sales/prepare_your_file.rb +++ b/app/models/forms/bulk_upload_sales/prepare_your_file.rb @@ -39,14 +39,17 @@ module Forms case year when 2023 "/files/bulk-upload-sales-template-2023-24.xlsx" + when 2024 + "/files/bulk-upload-sales-template-2024-25.xlsx" end end def specification_path case year - when 2023 "/files/bulk-upload-sales-specification-2023-24.xlsx" + when 2024 + "/files/bulk-upload-sales-specification-2024-25.xlsx" end end diff --git a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb index 618c2ab4c..eb4d55593 100644 --- a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb +++ b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb @@ -13,24 +13,15 @@

Download template

-

Use one of these templates to upload logs for 2024/25:

- -

There are 7 or 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.

+

<%= govuk_link_to "Download the lettings bulk upload template (2024 to 2025)", @form.template_path %>

+

There are 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.

Create your file

diff --git a/app/views/bulk_upload_sales_logs/forms/prepare_your_file_2024.html.erb b/app/views/bulk_upload_sales_logs/forms/prepare_your_file_2024.html.erb index 0bbca2317..81b9e0256 100644 --- a/app/views/bulk_upload_sales_logs/forms/prepare_your_file_2024.html.erb +++ b/app/views/bulk_upload_sales_logs/forms/prepare_your_file_2024.html.erb @@ -14,17 +14,14 @@

Download template

Use one of these templates to upload logs for 2024/25:

- -

There are 7 or 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.

+

<%= govuk_link_to "Download the sales bulk upload template (2024 to 2025)", @form.template_path %>: In this template, the questions are in the same order as the 2024/25 paper form and web form.

+

There are 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.

Create your file

diff --git a/app/views/bulk_upload_shared/guidance.html.erb b/app/views/bulk_upload_shared/guidance.html.erb index daca50456..c32295b13 100644 --- a/app/views/bulk_upload_shared/guidance.html.erb +++ b/app/views/bulk_upload_shared/guidance.html.erb @@ -28,7 +28,11 @@ <%= accordion.with_section(heading_text: "Using the bulk upload template") do %>

For each collection year, we publish a bulk upload template and specification.

-

The bulk upload templates contain 7 or 8 rows of ‘headers’ with information about how to fill in the template, including:

+ <% if @form.year == 2023 %> +

The bulk upload templates contain 7 or 8 rows of ‘headers’ with information about how to fill in the template, including:

+ <% else %> +

The bulk upload templates contain 8 rows of ‘headers’ with information about how to fill in the template, including:

+ <% end %>