Project

General

Profile

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

82e47ae0 Amos Benari
<div class="tab-pane" id="compute_resource">
334d0359 Amos Benari
<%= render 'compute', :compute_resource => @host.compute_resource if @host.compute_resource_id %>
</div>

82e47ae0 Amos Benari
<div class="tab-pane" id="network">
2c5c4d7d Ohad Levy
<span id="mac_address">
334d0359 Amos Benari
<%= render 'mac', :item => @host unless @hypervisor or @host.compute_resource_id -%>
2c5c4d7d Ohad Levy
</span>
e89efb28 Ohad Levy
<%= render 'common/domain_subnet', :item => @host %>
<%= 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'%>
2ee5d488 Amos Benari
<%= 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' %>
f28a6895 Ohad Levy
<span id="sp_subnet">
<%= render 'sp_subnet', :item => @host %>
</span>
05ab4c16 Ohad Levy
</div>

82e47ae0 Amos Benari
<div class="tab-pane" id="os">
05ab4c16 Ohad Levy
<%= render "common/os_selection/initial", { :item=> @host } %>
82e47ae0 Amos Benari
<%= textarea_f f, :disk, :class => "input-xxlarge", :label => 'Custom Disk layout', :rows => "4",
05ab4c16 Ohad Levy
:help_block => "What ever text(or ERB template) you use in here, would be used as your OS disk layout options If you want to use the partition table option, delete all of the text from this field" %>
8deb9933 Ohad Levy
<% if @host.new_record? -%>
05ab4c16 Ohad Levy
<%= checkbox_f f, :build, :checked => true, :help_inline => "Enable this host for provisioning" %>
b09b4515 Ohad Levy
<% end -%>
d59a4f2d Ohad Levy
<%= password_f f, :root_pass, :label => "Root Password" %>
69f9cb82 Ohad Levy
dec6f148 Amos Benari
<div class="control-group">
<div class="control-label"> Provisioning Templates</div>
<div class=controls>
<%= link_to_function icon_text("refresh", "Resolve"), "template_info('#templates_info','#{template_used_hosts_url}')", :class => "btn" %>
<%= popover("?", "Display the templates that will be used to provision this host", :title=>"Provisioning Templates") %>
</div>
<br>
<div id="templates_info" class="span6 controls"> </div>
4ebe38c7 Ohad Levy
</div>
05ab4c16 Ohad Levy
</div>