We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1314db1 commit 719bae2Copy full SHA for 719bae2
app/views/hostgroups/show.html.erb
@@ -6,17 +6,12 @@
6
7
<% form_for :new_host, :url => { :controller => "hostgrouphosts", :action => 'create' } do |f| -%>
8
<%= label_tag 'hostname' %>:
9
- <%= f.text_field :hostname %>
+ <%= f.select :hostname, Host.all.collect {|host| [h(host.host)]} %>
10
<%= hidden_field_tag 'new_host[hostgroup_id]', @hostgroup.id %>
11
<%= submit_tag "Add host to group" %>
12
<% end %>
13
<br />
14
15
-<script type="text/javascript">
16
- var data = "<%= @hosts.map { |h| h.is_a?(Hostgroup) ? h(h.name) : h(h.host) }.join ',' %> ".split(",");
17
- $("#new_host_hostname").autocomplete(data);
18
-</script>
19
-
20
<% if @last_message.blank? %>
21
No messages or hosts in this hostgroup.
22
<% else %>
0 commit comments