Project

General

Profile

« Previous | Next » 

Revision 754e83c1

Added by Dominic Cleal almost 11 years ago

  • ID 754e83c1667ab7af677064f468354d325f59c36f

fixes #2373 - only reference unattended subnet path when in unattended mode

View differences:

app/views/common/_domain.html.erb
<%= fields_for item do |f| %>
<%= select_f f, :subnet_id, domain_subnets, :id, :title,
{ :include_blank => domain_subnets.any? ? true : _("No subnets")},
{ :disabled => domain_subnets.empty?, :'data-url' => freeip_subnets_path,
{ :disabled => domain_subnets.empty?, :'data-url' => SETTINGS[:unattended] ? freeip_subnets_path : '',
:label => _("Subnet"), :help_inline => :indicator, :onchange => 'subnet_selected(this);'}
%>
<% end -%>

Also available in: Unified diff