<% if job_invocation.resolved? %> <%= form_tag job_invocation_path(job_invocation), :method => "get",:id =>"search-form" do %>
<%= auto_complete_search(:search, params[:search].try(:squeeze, " "), :placeholder => _("Filter") + ' ...', :path => hosts_path) %>
<% end %>
<% hosts.each do |host| %> <% task = job_invocation.sub_task_for_host(host) %> <%= render('host_provider_td', :host => host, :task => task) %> <%= render('host_status_td', :host => host, :task => task) %> <%= render('host_actions_td', :host => host, :task => task) %> <% end %>
<%= sort :name, :as => _('Host') %> <%= _('Provider') %> <%= _('Status') %> <%= _('Actions') %>
<%= link_to_if_authorized host.name, hash_for_host_path(host).merge(:auth_object => host, :permission => :view_hosts) %>
<%= will_paginate_with_info @hosts %> <% else %>
<%= _("The dynamic query '#{job_invocation.targeting.search_query}' was not resolved yet. The list of hosts to which it would resolve now can be seen") %> <%= link_to('here.', hosts_url(:search => job_invocation.targeting.search_query)) %>
<% end %>