6 changed files with 45 additions and 5 deletions
@ -0,0 +1,14 @@
|
||||
<%= form_with model: @user, url: path(current_user), method: "get", local: true do |f| %> |
||||
<div class="app-search govuk-!-margin-bottom-4"> |
||||
<%= f.govuk_text_field :search, |
||||
form_group: { |
||||
class: "app-search__form-group", |
||||
}, |
||||
label: { text: search_label }, |
||||
type: "search", |
||||
value:, |
||||
autocomplete: "off", |
||||
class: "app-search__input" %> |
||||
</div> |
||||
<%= f.govuk_submit "Add" %> |
||||
<% end %> |
@ -0,0 +1,2 @@
|
||||
class RelatedOrganisationSearchComponent < SearchComponent |
||||
end |
@ -0,0 +1,11 @@
|
||||
<%= render partial: "organisations/headings", locals: { main: "What is the name of your housing provider?", sub: nil } %> |
||||
<%= render RelatedOrganisationSearchComponent.new(current_user:, search_label: "Start typing to search for your housing provider", value: @searched) %> |
||||
<%= govuk_details(summary_text: "Can't find the housing provider you're looking for?") do %> |
||||
<ul class="govuk-list govuk-list--bullet"> |
||||
<li>Double check the spelling and try again</li> |
||||
<li>Type the first few letters to see the suggestions</li> |
||||
<li>If you still can't find it, |
||||
<%= govuk_link_to("contact the DLUHC service desk", "https://digital.dclg.gov.uk/jira/servicedesk/customer/portal/4/group/21", rel: "noreferrer noopener", target: "_blank") %> |
||||
</li> |
||||
</ul> |
||||
<% end %> |
Loading…
Reference in new issue