Revision ef14965b
Added by Ohad Levy about 14 years ago
- ID ef14965bdd36b8534bb0fc96bffc0f5302fbabe2
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 -%>
|
||
<table class="list">
|
||
<caption> <%= header ||= "" -%> </caption>
|
Also available in: Unified diff
fixes #222 - add search and sort functionality to dashboard host lists