|
|
@ -27,10 +27,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
<% null_option = [OpenStruct.new(id: "", name: "Select an option")] %> |
|
|
|
<% null_option = [OpenStruct.new(id: "", name: "Select an option")] %> |
|
|
|
<% organisations = Organisation.all.map { |org| OpenStruct.new(id: org.id, name: org.name) } %> |
|
|
|
<% organisations = Organisation.all.map { |org| OpenStruct.new(id: org.id, name: org.name) } %> |
|
|
|
<% stock_org_answer_options = null_option + organisations %> |
|
|
|
<% managing_org_answer_options = null_option + organisations %> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_collection_select :managing_organisation_id, |
|
|
|
<%= f.govuk_collection_select :managing_organisation_id, |
|
|
|
organisations, |
|
|
|
managing_org_answer_options, |
|
|
|
:id, |
|
|
|
:id, |
|
|
|
:name, |
|
|
|
:name, |
|
|
|
label: { text: "Which organisation manages this scheme?", size: "m" }, |
|
|
|
label: { text: "Which organisation manages this scheme?", size: "m" }, |
|
|
@ -39,7 +39,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<% if current_user.support? %> |
|
|
|
<% if current_user.support? %> |
|
|
|
<%= f.govuk_collection_select :owning_organisation_id, |
|
|
|
<%= f.govuk_collection_select :owning_organisation_id, |
|
|
|
stock_org_answer_options, |
|
|
|
organisations, |
|
|
|
:id, |
|
|
|
:id, |
|
|
|
:name, |
|
|
|
:name, |
|
|
|
label: { text: "Which organisation owns the housing stock for this scheme?", size: "m" }, |
|
|
|
label: { text: "Which organisation owns the housing stock for this scheme?", size: "m" }, |
|
|
|