-
-
-
<%= slot('HostgroupParams', true, lookup_values: lookup_values_data(@hostgroup)) %>
<% if authorized_for(:controller => "host_editing", :action => "view_params") %>
diff --git a/app/views/hosts/_form.html.erb b/app/views/hosts/_form.html.erb
index 62f7ae5bc6a7..3d332949b66c 100644
--- a/app/views/hosts/_form.html.erb
+++ b/app/views/hosts/_form.html.erb
@@ -4,7 +4,7 @@
<%= render "hosts/progress" %>
<% Taxonomy.as_taxonomy @organization , @location do %>
- <%= form_for @host, :url => (@host.new_record? ? hosts_path : host_path(:id => @host.id)), :html => {:class => 'hostresource-form form-horizontal well', :data => {:id => @host.try(:id), :type_changed => !!@host.type_changed?, :submit => 'progress_bar'}} do |f| %>
+ <%= form_for @host, :url => (@host.new_record? ? hosts_path : host_path(:id => @host.id)), :html => {:class => 'hostresource-form host-form form-horizontal well', :data => {:id => @host.try(:id), :type_changed => !!@host.type_changed?, :submit => 'progress_bar'}} do |f| %>
<%= base_errors_for @host %>
@@ -46,7 +46,7 @@
{ :class => 'hostgroup-select',
:data => {
:'host-id' => @host.id,
- :'url' => (@host.new_record? || @host.type_changed?) ? process_hostgroup_hosts_path : hostgroup_or_environment_selected_hosts_path,
+ :'url' => (process_hostgroup_hosts_path if @host.new_record? || @host.type_changed?),
:'had-hostgroup' => !!@host.hostgroup_id_was
},
:help_inline => :indicator } %>
@@ -76,7 +76,7 @@
<% end %>
- <%= render_pagelets_for(:main_tab_fields, :host => @host, :form => f) %>
+ <%= render_pagelets_for(:main_tab_fields, :subject => @host, :form => f) %>
<%= smart_proxy_fields f,
:can_override => true,
@@ -104,16 +104,11 @@
<%= render('hosts/unattended', :f => f) if SETTINGS[:unattended] and @host.managed %>
-
-
-
<%= slot('HostParams', true, lookup_values: lookup_values_data(@host)) %>
+
<% if authorized_for(:controller => "host_editing", :action => "view_params") %>