Revision 5081efd9
Added by Shimon Shtein almost 9 years ago
app/views/hosts/_form.html.erb | ||
---|---|---|
<div id="compute_profile" <%= display?(!@host.compute_resource_id) %> >
|
||
<%= select_f f, :compute_profile_id, ComputeProfile.visibles, :id, :name,
|
||
{ :disable_button => _(HostsAndHostgroupsHelper::INHERIT_TEXT),
|
||
:disable_button_enabled => @host.hostgroup && @host.hostgroup_id_was.nil? && !params[:host][:compute_profile_id],
|
||
:disable_button_enabled => inherited_by_default?(:compute_profile_id, @host),
|
||
:user_set => params[:host] && params[:host][:compute_profile_id]
|
||
},
|
||
{ :label => _("Compute profile"), :'data-url' => compute_resource_selected_hosts_path,
|
||
... | ... | |
|
||
<%= select_f f, :environment_id, Environment.with_taxonomy_scope_override(@location,@organization).order(:name), :id, :to_label, { :include_blank => true,
|
||
:disable_button => _(HostsAndHostgroupsHelper::INHERIT_TEXT),
|
||
:disable_button_enabled => @host.hostgroup && @host.hostgroup_id_was.nil? && !params[:host][:environment_id],
|
||
:disable_button_enabled => inherited_by_default?(:environment_id, @host),
|
||
:user_set => params[:host] && params[:host][:environment_id]
|
||
},
|
||
{:onchange => 'update_puppetclasses(this)', :'data-url' => hostgroup_or_environment_selected_hosts_path,
|
Also available in: Unified diff
Fixes #11255 - Fixed inheritance checks for explicit input on host clone