Revision ef14965b
Added by Ohad Levy about 14 years ago
- ID ef14965bdd36b8534bb0fc96bffc0f5302fbabe2
app/views/hosts/index.html.erb | ||
---|---|---|
<%= link_to_function "Search", toggle_div(:search) %>
|
||
<%= link_to "New Host", new_host_path %>
|
||
|
||
<div id="search" style="display: <%= searching? ? 'none':'inline' %>;">
|
||
<% 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 => 'fact_selected' %>
|
||
<p>
|
||
<%= f.submit "Search" %>
|
||
<% end %>
|
||
</div>
|
||
<span id=host_index_links>
|
||
<%= link_to "New Host", new_host_path %>
|
||
</span>
|
||
|
||
<%= render 'minilist', :hosts => @hosts, :header => "Hosts" %>
|
Also available in: Unified diff
fixes #222 - add search and sort functionality to dashboard host lists