Revision cdd8bb6f
Added by Paul Kelly about 14 years ago
- ID cdd8bb6f9dedcfc2eccd882ad79c5ac637c6bcf5
app/views/hosts/_minilist.html.erb | ||
---|---|---|
<div id="hostlist">
|
||
<%= link_to_function "Search", toggle_div(:search) %>
|
||
|
||
<div id="search" style="display:none;">
|
||
<% form_for @search do |f|-%>
|
||
<%= f.label :name_like, "Name" %>
|
||
<%= f.text_field :name_like, :size => 15 %>
|
||
<%= f.label :environment_id_equals, "Environment" %>
|
||
<%= f.collection_select :environment_id_equals, Environment.all, :id, :name, :include_blank => true %>
|
||
<%= f.label :hostgroup, "Role" %>
|
||
<%= f.collection_select :hostgroup_id_eq, Hostgroup.all, :id, :name, :include_blank => true %>
|
||
<%= render :partial => 'hosts/fact_selected' %>
|
||
<p>
|
||
<%= f.submit "Search" %>
|
||
<% end %>
|
||
</div>
|
||
|
||
<% if hosts.size > 0 -%>
|
||
<strong><center><%= header ||= "" -%></center></strong><br/>
|
||
<table class="list">
|
||
<caption> <%= header ||= "" -%> </caption>
|
||
<th colspan="8"><%= render "common/searchbar" %></th>
|
||
<tr>
|
||
<th><%= order @search, :by => :name %></th>
|
||
<th>Operating system</th>
|
||
... | ... | |
<% end -%>
|
||
</tr>
|
||
</table>
|
||
<% else -%>
|
||
<p>No Hosts found</p>
|
||
<% end -%>
|
||
</div>
|
||
<%= page_entries_info hosts %>
|
Also available in: Unified diff
Fixes #183 - Adds searchbar facility to hosts
Qualified the fact_selected partial
Added a reset button
Added popup help
Beautification and grooming