* Validate internal referrals and secure tenancy
* Fix referral validations and move referral validation from local_authority to household
* Move validation
* Add more error messages
* lint
* fix typo in test
* Check that the methods get called
* Fix lint
one_or_two_choices:"Only one box must be ticked or 'other disabilities' plus one of mobility disabilities"
one_or_two_choices:"Only one box must be ticked or 'other disabilities' plus one of mobility disabilities"
prevten:
prevten:
non_temp_accommodation:"Answer cannot be non-temporary accommodation as you already told us this is a re-let to tenant who occupied the same property as temporary accommodation"
non_temp_accommodation:"Answer cannot be non-temporary accommodation as you already told us this is a re-let to tenant who occupied the same property as temporary accommodation"
referral:
secure_tenancy:"Answer must be internal transfer as you already told us this is a secure tenancy"
rsnvac_non_temp:"Answer cannot be this source of referral as you already told us this is a re-let to tenant who occupied the same property as temporary accommodation"
cannot_be_secure_tenancy:"Answer cannot be secure tenancy as you already told us this is not an internal transfer"
tenancy:
tenancy:
length:
length:
fixed_term_not_required:"You must only answer the fixed term tenancy length question if the tenancy type is fixed term"
fixed_term_not_required:"You must only answer the fixed term tenancy length question if the tenancy type is fixed term"
shorthold:"Fixed term – Assured Shorthold Tenancy (AST) should be between 2 and 99 years"
shorthold:"Fixed term – Assured Shorthold Tenancy (AST) should be between 2 and 99 years"
secure:"Secure (including flexible) should be between 2 and 99 years or not specified"
secure:"Secure (including flexible) should be between 2 and 99 years or not specified"
internal_transfer:"Answer must be secure tenancy as you already told us this tenancy is an internal transfer"
local_authority:
cannot_be_internal_transfer:"Answer cannot be internal transfer as you already told us this is not a secure tenancy"
referral:
rsnvac_non_temp:"Answer cannot be this source of referral as you already told us this is a re-let to tenant who occupied the same property as temporary accommodation"
declaration:
declaration:
missing:"You must show the DLUHC privacy notice to the tenant before you can submit this log."
missing:"You must show the DLUHC privacy notice to the tenant before you can submit this log."