<% if job_invocation.resolved? %> <%= form_with url: job_invocation_path(job_invocation), method: "get", id: "search-form" do |f| %>
<%= autocomplete_f(f, :search, value: params[:search].try(:squeeze, " "), placeholder: _("Filter") + ' ...', path: hosts_path, only_input: true) %>
<% end %>
<%= mount_react_component('TargetingHosts', '#targeting_hosts') %>
<%= will_paginate_with_info @hosts, :container => true %> <% else %>
<%= _("The dynamic query '%{query}' was not resolved yet. The list of hosts to which it would resolve now can be seen %{here}." % { :query => job_invocation.targeting.search_query, :here => link_to(_('here'), hosts_url(:search => job_invocation.targeting.search_query))}) %>
<% end %>