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
778 B
20 lines
778 B
4 years ago
|
<% previous_page = form.previous_page("tenant_age") %>
|
||
4 years ago
|
<% content_for :before_content do %>
|
||
4 years ago
|
<%= govuk_back_link href: "/case_logs/#{case_log_id}/#{previous_page}" do %>
|
||
4 years ago
|
Back
|
||
|
<% end %>
|
||
4 years ago
|
<% end %>
|
||
|
|
||
4 years ago
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
|
||
4 years ago
|
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
|
||
4 years ago
|
<%= f.govuk_number_field :tenant_age,
|
||
|
hint: { text: "More detail" },
|
||
|
label: { text: "What is the tenant's age?", size: "l"},
|
||
|
min: 0, max: 150, step: 1, width: 20
|
||
|
%>
|
||
4 years ago
|
<%= f.hidden_field :previous_page, value: :tenant_age %>
|
||
4 years ago
|
<%= f.hidden_field :case_log_id, value: case_log_id %>
|
||
4 years ago
|
<%= f.govuk_submit "Save and continue" %>
|
||
4 years ago
|
<% end %>
|
||
|
<% end %>
|