Revision 9931eb1e
Added by Joseph Magen about 10 years ago
app/views/hosts/_interfaces.html.erb | ||
---|---|---|
:help_inline => :indicator,
|
||
:class => 'interface_domain', :'data-url' => domain_selected_hosts_path } %>
|
||
<% domain = f.object.respond_to?(:domain) ? f.object.domain : nil %>
|
||
<%= select_f f, :subnet_id, domain_subnets(domain), :id, :title,
|
||
<%= select_f f, :subnet_id, domain_subnets(domain), :id, :to_label,
|
||
{ :include_blank => domain_subnets(domain).any? ? true : _("No subnets")},
|
||
{ :disabled => domain_subnets(domain).empty? ? true : false,
|
||
:help_inline => :indicator,
|
Also available in: Unified diff
fixes #5258 - Can't edit a host due to IPMC/BMC interface form error
(cherry picked from commit e029bc8cd326ba759698f4684006107b626aaeb8)