Project

General

Profile

Download (2.08 KB) Statistics
| Branch: | Tag: | Revision:
<%= javascript "jquery.cookie", "host_checkbox" %>
<% title header ||= "" %>
<table class="table table-bordered table-striped table-condensed" >
<tr>
<th class="ca span0"><%= check_box_tag "check_all", "", false, { :onclick => "toggleCheck()", :title => "Select All" } %></th>
<th class='span3'><%= sort :name %></th>
<th><%= sort :os, :as => "Operating<br>System" %></th>
<th><%= sort :environment %></th>
<th><%= sort :model %></th>
<th><%= sort :hostgroup, :as => "Host Group" %></th>
<th><%= sort :last_report %></th>
<th></th>
</tr>
<% hosts.each do |host| -%>
<tr>
<td class="ca span0">
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{host.id}", :disabled => !authorized?, :class => 'host_select_boxes', :onclick => 'hostChecked(this)' -%>
</td>
<td class='span3'><%= name_column(host) %> </td>
<td><%= (icon(host.os, :size => "18x18") + trunc(" #{host.os}",14)).html_safe if host.os %></td>
<td><%= trunc(host.try(:environment), 14) %></td>
<td><%= trunc(host.try(:model), 14) %></td>
<td><%= hostgroup_name host.hostgroup, 26 %></td>
<td><%= last_report_column(host) %></td>
<td>
<%= action_buttons(
display_link_if_authorized("Edit Host", hash_for_edit_host_path(:id => host), :class=>"btn btn-small"),
display_link_if_authorized("Clone", hash_for_clone_host_path(:id => host)),
display_delete_if_authorized(hash_for_host_path(:id => host), :confirm => "Delete #{host.name}?", :action => :destroy))%>
</td>
</tr>
<% end -%>
</table>
<div id="confirmation-modal" class="modal hide fade">
<div class="modal-header">
<a href="#" class="close" data-dismiss="modal">×</a>
<h3>Please Confirm</h3>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<a href="#" class="btn btn-primary">Submit</a>
<a href="#" class="btn secondary">Cancel</a>
</div>
</div>

<%= page_entries_info hosts, :more => " - <strong><span class='select_count'>0</span></strong> Selected" %>
<%= will_paginate hosts %>
(4-4/28)