Project

General

Profile

Download (1.73 KB) Statistics
| Branch: | Tag: | Revision:
<div class="tab-pane" id="virtual_machine">
<%= render('common/hypervisor', :item => @host) if @host.new_record? and !Hypervisor.first.nil? and authorized_for("Hypervisors::Guests", :create) %>
</div>

<div class="tab-pane" id="compute_resource">
<%= render 'compute', :compute_resource => @host.compute_resource if @host.compute_resource_id %>
</div>

<div class="tab-pane" id="network">
<div id="mac_address" <%= display? (@hypervisor or @host.compute_resource_id)%> >
<%= text_f f, :mac, :label => "MAC", :help_inline => "MAC address for this host", :autocomplete => 'off' %>
</div>

<%= select_f f, :domain_id, accessible_domains, :id, :to_label, {:include_blank => true},
{:onchange => 'domain_selected(this);', :'data-url' => domain_selected_hosts_path} %>
<% if @host.capabilities.include?(:build) %>
<div id='manage_network'>
<span id="subnet_select">
<%= render 'common/domain', :item => @host %>
</span>
<%= text_f f, :ip, :help_inline => "IP Address for this host, if DHCP Smart proxy is enabled, this should be auto suggested to you", :label => "IP" , :autocomplete => 'off'%>
<div id="bmc" <%= display? @host.compute_resource_id %> >
<%= text_f f, :sp_name, :help_inline => "BMC interface DNS name", :label => "BMC Name" , :autocomplete => 'off'%>
<%= text_f f, :sp_ip, :label => "BMC IP" , :autocomplete => 'off'%>
<%= text_f f, :sp_mac, :label => "BMC MAC", :autocomplete => 'off' %>
<span id="sp_subnet">
<%= render 'sp_subnet', :item => @host %>
</span>
</div>
</div>
<% end %>
</div>

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