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.
23 lines
957 B
23 lines
957 B
4 years ago
|
<% genders = [
|
||
4 years ago
|
OpenStruct.new(id: 0, value: "Male"),
|
||
|
OpenStruct.new(id: 1, value: "Female"),
|
||
|
OpenStruct.new(id: 2, value: "Non-binary"),
|
||
|
OpenStruct.new(id: 3, value: "Prefer not to say")
|
||
4 years ago
|
] %>
|
||
|
|
||
4 years ago
|
<% previous_page = form.previous_page("tenant_gender") %>
|
||
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
|
|
||
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_collection_radio_buttons :tenant_gender, genders, :id, :value, legend: { text: "Which of these best describes the tenant's gender identity?", size: "l" } %>
|
||
4 years ago
|
<%= f.hidden_field :previous_page, value: :tenant_gender %>
|
||
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 %>
|