|
|
@ -1,4 +1,4 @@ |
|
|
|
<% situations = [ |
|
|
|
<% situations = [ |
|
|
|
OpenStruct.new(id: 0, name: "Owner occupation (private)"), |
|
|
|
OpenStruct.new(id: 0, name: "Owner occupation (private)"), |
|
|
|
OpenStruct.new(id: 1, name: "Owner occupation (low cost home ownership)"), |
|
|
|
OpenStruct.new(id: 1, name: "Owner occupation (low cost home ownership)"), |
|
|
|
OpenStruct.new(id: 2, name: "Private sector tenancy"), |
|
|
|
OpenStruct.new(id: 2, name: "Private sector tenancy"), |
|
|
@ -22,7 +22,12 @@ |
|
|
|
OpenStruct.new(id: 20, name: "Lifetime Local Authority General Needs tenancy"), |
|
|
|
OpenStruct.new(id: 20, name: "Lifetime Local Authority General Needs tenancy"), |
|
|
|
OpenStruct.new(id: 21, name: "Fixed term PRP General Needs tenancy"), |
|
|
|
OpenStruct.new(id: 21, name: "Fixed term PRP General Needs tenancy"), |
|
|
|
OpenStruct.new(id: 22, name: "Lifetime PRP General Needs tenancy"), |
|
|
|
OpenStruct.new(id: 22, name: "Lifetime PRP General Needs tenancy"), |
|
|
|
] %> |
|
|
|
] %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% previous_question = Form.previous_question("previous_housing_situation") %> |
|
|
|
|
|
|
|
<%= govuk_back_link href: "/case_logs/#{case_log_id}/#{previous_question}" do %> |
|
|
|
|
|
|
|
Back |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %> |
|
|
|
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> |
|
|
|
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> |
|
|
|