You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
881 B
20 lines
881 B
3 years ago
|
<% previous_question = Form.previous_question("other_household_members") %>
|
||
3 years ago
|
<% content_for :before_content do %>
|
||
|
<%= govuk_back_link href: "/case_logs/#{case_log_id}/#{previous_question}" do %>
|
||
|
Back
|
||
|
<% end %>
|
||
3 years ago
|
<% end %>
|
||
|
|
||
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
|
||
|
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
|
||
|
<%= f.govuk_number_field :other_household_members,
|
||
|
hint: { text: "The maximum number of others is 7" },
|
||
|
label: { text: "How many other people are there in the household?", size: "l"},
|
||
|
min: 0, max: 7, step: 1, width: 20
|
||
|
%>
|
||
|
<%= f.hidden_field :previous_question, value: :other_household_members %>
|
||
|
<%= f.hidden_field :case_log_id, value: case_log_id %>
|
||
|
<%= f.govuk_submit "Save and continue" %>
|
||
|
<% end %>
|
||
3 years ago
|
<% end %>
|