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 b5d28a7a2..26032e614 100644 --- a/app/models/forms/bulk_upload_lettings/prepare_your_file.rb +++ b/app/models/forms/bulk_upload_lettings/prepare_your_file.rb @@ -9,7 +9,12 @@ module Forms attribute :needstype, :integer def view_path - "bulk_upload_lettings_logs/forms/prepare_your_file" + case year + when 2022 + "bulk_upload_lettings_logs/forms/prepare_your_file_2022" + else + "bulk_upload_lettings_logs/forms/prepare_your_file_2023" + end end def back_path @@ -29,7 +34,7 @@ module Forms case year when 2022 "/files/bulk-upload-lettings-template-2022-23.xlsx" - when 2023 + else "/files/bulk-upload-lettings-legacy-template-2023-24.xlsx" end end @@ -38,7 +43,7 @@ module Forms case year when 2022 "/files/bulk-upload-lettings-template-2022-23.xlsx" - when 2023 + else "/files/bulk-upload-lettings-template-2023-24.xlsx" end end @@ -47,7 +52,7 @@ module Forms case year when 2022 "/files/bulk-upload-lettings-specification-2022-23.xlsx" - when 2023 + else "/files/bulk-upload-lettings-specification-2023-24.xlsx" end end @@ -56,12 +61,6 @@ module Forms "#{year}/#{year + 1 - 2000}" end - def inset_text - if year == 2022 - '
For 2022/23 data, you cannot have a CSV file with both general needs logs and supported housing logs. These must be in separate files.
'.html_safe - end - end - def save! true end diff --git a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2022.html.erb similarity index 77% rename from app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb rename to app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2022.html.erb index 45c2be562..632f320a2 100644 --- a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb +++ b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2022.html.erb @@ -11,27 +11,31 @@Export CSV data directly from your current systems, or export then adjust it to CSV.
You can then upload it via a button at the top of the lettings and sales logs pages.
- <%= govuk_details(summary_text: "My organisation has a CMS") do %> + + <%= govuk_details(summary_text: "My organisation has a HMS") do %>Some HMS providers sell an add-on "eCORE" module, which exports CSV data for you.
It can take HMS providers a while to update these per new collection year, so you may have to wait for updates to export, or adjust your data manually post-export.
<% end %> - <%= govuk_details(summary_text: "My organisation does not have a CMS") do %> + + <%= govuk_details(summary_text: "My organisation does not have a HMS") do %>Your organisation’s IT team may be able to export CSV data for you - <%= govuk_link_to "find out more about data specification", @form.specification_path, target: "_blank" %>. This document outlines:
+Fields can appear in any order, as long as you include the <%= govuk_link_to "template document", @form.template_path %> headers, to easily identify what each column represents. You can rearrange data columns to match your system exports, copy-pasting multiple columns at once. For data stored in multiple systems, you can copy-paste all columns for one system next to each other, repeating this for subsequent system exports.
+ + <% if @form.year == 2022 %> +Fields must be in the same order as <%= govuk_link_to "the template", @form.template_path %>. Copy each column of your exported data one at a time and paste into the correct template column.
+ <% else %> +Fields can appear in any order, as long as you include the <%= govuk_link_to "template document", @form.template_path %> headers, to easily identify what each column represents. You can rearrange data columns to match your system exports, copy-pasting multiple columns at once. For data stored in multiple systems, you can copy-paste all columns for one system next to each other, repeating this for subsequent system exports.
+ <% end %> <% end %>