%= form_with model: nil, url: housing_providers_organisation_path, method: "post", local: true do |f| %> <%# remove_other_page_errors(@log, @page) %> <%#= f.govuk_error_summary %> <% if current_user.support? %> <%= render partial: "organisations/headings", locals: { main: @organisation.name, sub: nil } %> <%= render SubNavigationComponent.new(items: secondary_items(request.path, @organisation.id)) %>
Start typing to search for a housing provider
<% else %> <%= render partial: "organisations/headings", locals: { main: "What is the name of your housing provider?", sub: nil } %>Start typing to search for your housing provider
<% end %> <%= render partial: "organisation_relationships/related_organisation_select_question", locals: { question: Form::Question.new("", {"answer_options" => answer_options}, nil), f: } %> <%= f.govuk_submit "Add" %> <%= govuk_details(summary_text: "Can't find the housing provider you're looking for?") do %>