Project

General

Profile

Download (2.42 KB) Statistics
| Branch: | Tag: | Revision:
<div class="tab-pane" id="compute_resource">
<%= render('hosts/compute', :compute_resource => @host.compute_resource) if @host.compute_resource %>
</div>

<div class="tab-pane" id="network">
<%= field_set_tag _("General Settings"), :id => "general_settings" do %>
<%= select_f f, :domain_id, accessible_domains, :id, :to_label, {:include_blank => true},
{:help_inline => :indicator, :required => true,
:onchange => 'domain_selected(this);', :'data-url' => domain_selected_hosts_path} %>

<%= select_f f, :realm_id, Realm.with_taxonomy_scope_override(@location,@organization).authorized(:view_realms),
:id, :to_label, { :include_blank => true }, {:help_inline => :indicator} %>
<% end %>

<%= field_set_tag _("Primary Interface"), :id => "primary_interface" do %>
<div id="mac_address" <%= display? @host.compute_resource_id %> >
<%= text_f f, :mac, :help_inline => _("MAC address for this host"), :autocomplete => 'off', :required => true %>
</div>

<div id='manage_network'>
</div>

<% if @host.capabilities.include?(:build) %>
<div id='manage_network_build'>
<span id="subnet_select">
<%= render 'common/domain', :item => @host %>
</span>
<%= text_f f, :ip, :autocomplete => 'off', :help_block => link_to(_("Suggest new"), '#', :id => 'suggest_new_ip'),
:help_inline => popover(_("IP address auto-suggest"), _("An IP address will be auto-suggested if you have a DHCP-enabled Smart Proxy on the subnet selected above.<br/><br/>The IP address can be left blank when:<br/><ul><li>provisioning tokens are enabled</li><li>the domain does not manage DNS</li><li>the subnet does not manage reverse DNS</li><li>and the subnet does not manage DHCP reservations</li></ul>"), :title => _("IP address for this host")).html_safe %>
<%= f.fields_for :interfaces do |interfaces| %>
<%= render :partial => interfaces.object, :layout => 'nic/interface_layout', :locals => {:f => interfaces} %>
<% end %>
<%= new_child_fields_template(f, :interfaces, {:partial => Nic::Managed.new, :layout => 'nic/interface_layout'}) %>
<%= add_child_link "+ " + _("Add Interface"), :interfaces, { :class => "info", :title => _('add new network interface') } %>
</div>
<% end %>
<% end %>
</div>

<div class="tab-pane" id="os">
<%= render 'hosts/operating_system', :host => @host, :f => f %>
</div>
(17-17/37)