|
|
|
|
@ -20,7 +20,7 @@ module Forms
|
|
|
|
|
|
|
|
|
|
def back_path |
|
|
|
|
if have_choice_of_year? |
|
|
|
|
Rails.application.routes.url_helpers.bulk_upload_lettings_log_path(id: "year", form: { year:, organisation_id: }) |
|
|
|
|
Rails.application.routes.url_helpers.bulk_upload_lettings_log_path(id: "year", form: { year:, organisation_id: }.compact) |
|
|
|
|
elsif organisation_id.present? |
|
|
|
|
lettings_logs_organisation_path(organisation_id) |
|
|
|
|
else |
|
|
|
|
@ -29,7 +29,7 @@ module Forms
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def next_path |
|
|
|
|
bulk_upload_lettings_log_path(id: "upload-your-file", form: { year:, needstype:, organisation_id: }) |
|
|
|
|
bulk_upload_lettings_log_path(id: "upload-your-file", form: { year:, needstype:, organisation_id: }.compact) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def legacy_template_path |
|
|
|
|
|