<% title _('Discovered Hosts') %> <% Setting::Discovered.discovery_fact_column_array.each do |fact_column| %> <% end %> <% @hosts.each do |host| -%> <%= render :partial => "discovered_host", :locals => {:host => host} %> <% end -%>
<%= check_box_tag "check_all", "", false, { :onclick => "tfm.hosts.table.toggleCheck()", :'check-title' => _("Select all items in this page"), :'uncheck-title'=> _("items selected. Uncheck to Clear") } %> <%= sort :name, :as => _('Name') %>
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{host.id}", :disabled => !authorized_for_edit_destroy?, :class => 'host_select_boxes', :onclick => 'tfm.hosts.table.hostChecked(this)' -%> <%= render :partial => "discovered_host_modal", :locals => {:host => host} %> <%= action_buttons( provision_button(host, hash_for_edit_discovered_host_path(:id => host)), display_link_if_authorized(_("Auto Provision"), hash_for_auto_provision_discovered_host_path(:id => host), :method => :post), display_link_if_authorized(_("Refresh facts"), hash_for_refresh_facts_discovered_host_path(:id => host)), display_link_if_authorized(_("Reboot"), hash_for_reboot_discovered_host_path(:id => host), :method => :put), display_delete_if_authorized(hash_for_discovered_host_path(:id => host), :data => { :confirm => _("Delete %s?") % host.name }, :action => :destroy)) %>
<%= will_paginate_with_info @hosts %>