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.
39 lines
1.9 KiB
39 lines
1.9 KiB
3 years ago
|
<% ethnic_groups = [
|
||
3 years ago
|
OpenStruct.new(id: 0, value: "White: English/Scottish/Welsh/Northern Irish/British"),
|
||
|
OpenStruct.new(id: 1, value: "White: Irish"),
|
||
|
OpenStruct.new(id: 2, value: "White: Gypsy/Irish Traveller"),
|
||
|
OpenStruct.new(id: 3, value: "White: Other"),
|
||
|
OpenStruct.new(id: 4, value: "Mixed: White & Black Caribbean"),
|
||
|
OpenStruct.new(id: 5, value: "Mixed: White & Black African"),
|
||
|
OpenStruct.new(id: 6, value: "Mixed: White & Asian"),
|
||
|
OpenStruct.new(id: 7, value: "Mixed: Other"),
|
||
|
OpenStruct.new(id: 8, value: "Asian or Asian British: Indian"),
|
||
|
OpenStruct.new(id: 9, value: "Asian or Asian British: Pakistani"),
|
||
|
OpenStruct.new(id: 10, value: "Asian or Asian British: Bangladeshi"),
|
||
|
OpenStruct.new(id: 11, value: "Asian or Asian British: Chinese"),
|
||
|
OpenStruct.new(id: 12, value: "Asian or Asian British: Other"),
|
||
|
OpenStruct.new(id: 13, value: "Black: Caribbean"),
|
||
|
OpenStruct.new(id: 14, value: "Black: African"),
|
||
|
OpenStruct.new(id: 15, value: "Black: Other"),
|
||
|
OpenStruct.new(id: 16, value: "Other Ethnic Group: Arab"),
|
||
|
OpenStruct.new(id: 17, value: "Other Ethnic Group: Other"),
|
||
|
OpenStruct.new(id: 18, value: "Prefer not to say")
|
||
3 years ago
|
] %>
|
||
|
|
||
3 years ago
|
<% previous_page = form.previous_page("tenant_ethnic_group") %>
|
||
3 years ago
|
<% content_for :before_content do %>
|
||
3 years ago
|
<%= govuk_back_link href: "/case_logs/#{case_log_id}/#{previous_page}" do %>
|
||
3 years ago
|
Back
|
||
|
<% end %>
|
||
3 years ago
|
<% end %>
|
||
|
|
||
3 years ago
|
|
||
3 years ago
|
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
|
||
3 years ago
|
<%= form_with action: '/case_logs', method: "next_page", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
|
||
3 years ago
|
<%= f.govuk_collection_radio_buttons :tenant_ethnic_group, ethnic_groups, :id, :value, legend: { text: "What is the tenant’s ethnic group?", size: "l" } %>
|
||
3 years ago
|
<%= f.hidden_field :previous_page, value: :tenant_ethnic_group %>
|
||
3 years ago
|
<%= f.hidden_field :case_log_id, value: case_log_id %>
|
||
|
<%= f.govuk_submit "Save and continue" %>
|
||
|
<% end %>
|
||
|
<% end %>
|