Skip to content

Commit

Permalink
Give the user the option to do a search on other matching addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 13, 2024
1 parent c3af0e7 commit f680732
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/views/_tailwind/applications/_address_with_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
<%= render Tailwind::Heading.new(tag: :h1, extra_classes: "sr-only").with_content("Search Applications") %>
<%= render "address_search_form", q:, error: %>

<%# TODO: Need a proper design for this section %>
<%# TODO: When this section shows up it's not actually clear what the current search is for %>
<% unless other_addresses.empty? %>
<section class="pt-16">
<%= render Tailwind::Heading.new(tag: :h2).with_content("Or did you want?") %>

<ul class="pt-8 text-2xl text-navy">
<% other_addresses.each do |a| %>
<li>
<%= pa_link_to a, q: a %>
</li>
<% end %>
</ul>
</section>
<% end %>

<% if applications %>
<section class="pt-16">
<%= render Tailwind::Heading.new(tag: :h2).with_content("Search results") %>
Expand All @@ -24,8 +40,6 @@
</div>
</div>

<%# TODO: If there are other possible addresses that match show those %>

<%# TODO: If there are no results we probably don't want to save this search, right? %>
<div class="mt-12 mb-4">
<%= render "create_alert_form", alert: %>
Expand Down

0 comments on commit f680732

Please sign in to comment.