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.
16 lines
750 B
16 lines
750 B
3 years ago
|
<% genders = [
|
||
|
OpenStruct.new(id: 0, name: "Male"),
|
||
|
OpenStruct.new(id: 1, name: "Female"),
|
||
|
OpenStruct.new(id: 2, name: "Non-binary"),
|
||
|
OpenStruct.new(id: 3, name: "Prefer not to say")
|
||
|
] %>
|
||
3 years ago
|
|
||
|
<%= turbo_frame_tag "case_log_form" do %>
|
||
3 years ago
|
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
|
||
3 years ago
|
<%= f.govuk_collection_radio_buttons :tenant_gender, genders, :id, :name, legend: { text: "Which of these best describes the tenant's gender identity?", size: "l" } %>
|
||
3 years ago
|
<%= f.hidden_field :previous_question, value: :tenant_gender %>
|
||
3 years ago
|
<%= f.hidden_field :case_log_id, value: case_log_id %>
|
||
3 years ago
|
<%= f.govuk_submit "Save and continue" %>
|
||
3 years ago
|
<% end %>
|
||
|
<% end %>
|