Browse Source

feat: use accessible autocomplete (not working)

pull/954/head
natdeanlewissoftwire 3 years ago
parent
commit
a0a78f19b1
  1. 2
      app/views/organisation_relationships/_related_organisation_select_question.html.erb

2
app/views/organisation_relationships/_related_organisation_select_question.html.erb

@ -1,5 +1,5 @@
<% answers = question.answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %>
<%= f.govuk_select :related_organisation_id do %>
<%= f.govuk_select(:related_organisation_id, "data-controller": "accessible-autocomplete") do %>
<% answers.each do |answer| %>
<option value="<%= answer.id %>">
<%= answer.name %>

Loading…
Cancel
Save