diff --git a/app/views/_tailwind/applications/_address_with_results.html.erb b/app/views/_tailwind/applications/_address_with_results.html.erb index f72fb4f14..d8929bd22 100644 --- a/app/views/_tailwind/applications/_address_with_results.html.erb +++ b/app/views/_tailwind/applications/_address_with_results.html.erb @@ -21,7 +21,9 @@ <%# TODO: Do we want to keep this template for when there are no errors? %> <%# TODO: Remove duplication of heading %> -<% if error.nil? && applications.empty? %> +<%# TODO: Figure out how to handle no results when extra_options_on_address_search is enabled %> +<%# TODO: Add filter option for no filtering (e.g. any distance or any time) because the filtering in its current is very confusing in its behaviour %> +<% if error.nil? && applications.empty? && !Flipper.enabled?(:extra_options_on_address_search, current_user)%>
<%= render "no_applications", full_address:, q: %>
@@ -74,66 +76,3 @@ <% end %> - -<% -=begin -%> - -<% if q.nil? || error %> -

- Search for applications near an address -

- <%= render "address_search_form", q:, error: %> -<% else %> -

- Applications within - <% if Flipper.enabled?(:extra_options_on_address_search, current_user) %> - the last - <%= days_in_words(time) %> - and - <% end %> - <%= meters_in_words(radius) %> - of - <%= full_address %> -

- <% unless other_addresses.empty? %> -

Or did you want?

- - <% end %> - <%# TODO: Figure out how to handle no results when extra_options_on_address_search is enabled %> - <% if applications.empty? && !Flipper.enabled?(:extra_options_on_address_search, current_user) %> - <%= render "no_applications", full_address:, q: %> - <% else %> -
- <%= render "alerts/signup_introduction" %> - <%= render "alerts/frequency" %> - <%= render "privacy_policy" %> - <%= render "alerts/signup_form", alert:, address_hidden: true %> -
-
-
- <%= render "sort_options", sort:, extra_params: { q: } %> -
- <% if Flipper.enabled?(:extra_options_on_address_search, current_user) %> -
- <%= render "filter_options", sort:, q:, radius:, time: %> -
- <% end %> -
- <%= render "pagination", applications: %> -
    - <%= render partial: "application", collection: applications %> -
- <%= render "pagination", applications: %> - <% end %> -<% end %> - -<% -=end -%>