@ -1,27 +1,27 @@
<% situations = [
OpenStruct.new(id: 0, nam e: "Owner occupation (private)"),
OpenStruct.new(id: 1, nam e: "Owner occupation (low cost home ownership)"),
OpenStruct.new(id: 2, nam e: "Private sector tenancy"),
OpenStruct.new(id: 3, nam e: "Tied housing or rented with job"),
OpenStruct.new(id: 4, nam e: "Supported housing"),
OpenStruct.new(id: 5, nam e: "Sheltered accomodation"),
OpenStruct.new(id: 6, nam e: "Residential care home"),
OpenStruct.new(id: 7, nam e: "Living with friends or family"),
OpenStruct.new(id: 8, nam e: "Refuge"),
OpenStruct.new(id: 9, nam e: "Hospital"),
OpenStruct.new(id: 10, nam e: "Prison / Approved Probation Hostel"),
OpenStruct.new(id: 11, nam e: "Direct access hostel"),
OpenStruct.new(id: 12, nam e: "Bed & Breakfast"),
OpenStruct.new(id: 13, nam e: "Mobile home / caravan"),
OpenStruct.new(id: 14, nam e: "Any other temporary accommodation"),
OpenStruct.new(id: 15, nam e: "Home Office Asylum Support"),
OpenStruct.new(id: 16, nam e: "Children’s home / foster care"),
OpenStruct.new(id: 17, nam e: "Rough sleeping"),
OpenStruct.new(id: 18, nam e: "Other"),
OpenStruct.new(id: 19, nam e: "Fixed term Local Authority General Needs tenancy"),
OpenStruct.new(id: 20, nam e: "Lifetime Local Authority General Needs tenancy"),
OpenStruct.new(id: 21, nam e: "Fixed term PRP General Needs tenancy"),
OpenStruct.new(id: 22, nam e: "Lifetime PRP General Needs tenancy"),
OpenStruct.new(id: 0, valu e: "Owner occupation (private)"),
OpenStruct.new(id: 1, valu e: "Owner occupation (low cost home ownership)"),
OpenStruct.new(id: 2, valu e: "Private sector tenancy"),
OpenStruct.new(id: 3, valu e: "Tied housing or rented with job"),
OpenStruct.new(id: 4, valu e: "Supported housing"),
OpenStruct.new(id: 5, valu e: "Sheltered accomodation"),
OpenStruct.new(id: 6, valu e: "Residential care home"),
OpenStruct.new(id: 7, valu e: "Living with friends or family"),
OpenStruct.new(id: 8, valu e: "Refuge"),
OpenStruct.new(id: 9, valu e: "Hospital"),
OpenStruct.new(id: 10, valu e: "Prison / Approved Probation Hostel"),
OpenStruct.new(id: 11, valu e: "Direct access hostel"),
OpenStruct.new(id: 12, valu e: "Bed & Breakfast"),
OpenStruct.new(id: 13, valu e: "Mobile home / caravan"),
OpenStruct.new(id: 14, valu e: "Any other temporary accommodation"),
OpenStruct.new(id: 15, valu e: "Home Office Asylum Support"),
OpenStruct.new(id: 16, valu e: "Children’s home / foster care"),
OpenStruct.new(id: 17, valu e: "Rough sleeping"),
OpenStruct.new(id: 18, valu e: "Other"),
OpenStruct.new(id: 19, valu e: "Fixed term Local Authority General Needs tenancy"),
OpenStruct.new(id: 20, valu e: "Lifetime Local Authority General Needs tenancy"),
OpenStruct.new(id: 21, valu e: "Fixed term PRP General Needs tenancy"),
OpenStruct.new(id: 22, valu e: "Lifetime PRP General Needs tenancy"),
] %>
<% previous_question = Form.previous_question("previous_housing_situation") %>
@ -33,7 +33,7 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
<%= f.govuk_collection_radio_buttons :previous_housing_situation, situations, :id, :nam e, legend: { text: "What was the tenant’s housing situation immediately before this letting?", size: "l" } %>
<%= f.govuk_collection_radio_buttons :previous_housing_situation, situations, :id, :valu e, legend: { text: "What was the tenant’s housing situation immediately before this letting?", size: "l" } %>
<%= f.hidden_field :previous_question, value: :previous_housing_situation %>
<%= f.hidden_field :case_log_id, value: case_log_id %>
<%= f.govuk_submit "Save and continue" %>