From 6273a076cb67cb5881db64594e0014de6d2da1da Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:50:29 +0100 Subject: [PATCH] CLDC-3414&5 Close 2023/24 - No new/No editing of entries (#2520) * Close 2023/24 --- app/models/form.rb | 2 ++ .../forms/prepare_your_file_2024.html.erb | 2 +- app/views/layouts/_collection_resources.html.erb | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/models/form.rb b/app/models/form.rb index 755121473..4336376e6 100644 --- a/app/models/form.rb +++ b/app/models/form.rb @@ -11,6 +11,8 @@ class Form }, 2023 => { submission_deadline: Time.zone.local(2024, 6, 7), + new_logs_end_date: Time.zone.local(2024, 7, 22), + edit_end_date: Time.zone.local(2024, 7, 22), }, 2024 => { submission_deadline: Time.zone.local(2025, 6, 6), 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 6413d70cb..45ce4b385 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 @@ -26,7 +26,7 @@
Use the 2024 to 2025 forms for lettings that start and sales that complete between 1 April 2024 and 31 March 2025.
-Use the 2023 to 2024 forms for lettings that start and sales that complete between 1 April 2023 and 31 March 2024.
+<% if FormHandler.instance.lettings_form_for_start_year(2023) && FormHandler.instance.lettings_form_for_start_year(2023).edit_end_date > Time.zone.today %> +Use the 2023 to 2024 forms for lettings that start and sales that complete between 1 April 2023 and 31 March 2024.
+<% end %>