returngovuk_button_link_to"Deactivate this location",scheme_location_new_deactivation_path(location.scheme,location),warning:trueiflocation.active?||location.deactivates_in_a_long_time?
returngovuk_button_link_to"Deactivate this location",scheme_location_new_deactivation_path(location.scheme,location),warning:trueiflocation.active?||location.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?&&!location.deactivated_by_scheme?
govuk_button_link_to"Reactivate this location",scheme_location_new_reactivation_path(location.scheme,location)iflocation.deactivated?&&!location.deactivated_by_scheme?
returngovuk_button_link_to"Deactivate this scheme",scheme_new_deactivation_path(scheme),warning:trueifscheme.active?||scheme.deactivates_in_a_long_time?
returngovuk_button_link_to"Deactivate this scheme",scheme_new_deactivation_path(scheme),warning:trueifscheme.active?||scheme.deactivates_in_a_long_time?
returngovuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?||scheme.deactivating_soon?
govuk_button_link_to"Reactivate this scheme",scheme_new_reactivation_path(scheme)ifscheme.deactivated?||scheme.deactivating_soon?
title_text:"You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}."
title_text:"You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}."
informative_text:"The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question."
informative_text:"The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question."
tenancyother_value_check:
page_header:""
check_answer_label:"Tenancy other confirmation"
check_answer_prompt:"Confirm tenancy type"
hint_text:""
question_text:""
title_text:"You told us that the type of tenancy was %{tenancyother}."
informative_text:"We already know whether the tenancy is introductory or has a starter period from your previous answer. Your answer to the type of main tenancy question should be the type of tenancy that the tenant will roll onto after any introductory or starter period. Choose from the categories or write a description if no category is suitable."
referral_value_check:
page_header:""
check_answer_label:"Referral confirmation"
check_answer_prompt:"Confirm referral type"
hint_text:""
question_text:"Are you sure?"
title_text:"Are you sure?"
informative_text:"This is a general needs log, and this referral type is for supported housing."
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates and at least one duplicate has been deleted since being affected"]
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates and at least one duplicate has been deleted since being affected"]
next
next
end
end
ifvisible_duplicates.length.zero?
ifvisible_duplicates.empty?
seen.add(id)
seen.add(id)
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates"]
csv<<[id,log.collection_start_year,log.status,log.owning_organisation_name,log.assigned_to_id,log.assigned_to.email,"Leave","Log has no visible duplicates"]