|
<span id="virtual_machine">
|
|
<%= render('hypervisor', :f => f) if @host.new_record? and !Hypervisor.first.nil? %>
|
|
</span>
|
|
<% field_set_tag 'Network settings' do -%>
|
|
<%= f.label :domain_id, nil, :class => "span-3" %>
|
|
<%= f.collection_select :domain_id, accessible_domains, :id, :to_label, {:include_blank => true},{:class => "span-5"} %>
|
|
<span id="host_subnet" class="span-6"> <%= render 'domain' if @domain %> </span>
|
|
<%= f.label :ip, "IP", :class => "span-1" %>
|
|
<%= f.text_field :ip, :class => "span-3", :title => "IP Address for this host, if DHCP Smart proxy is enabled, this should be auto suggested to you" %>
|
|
<% unless @hypervisor -%>
|
|
<%= render 'mac' %>
|
|
<% end -%>
|
|
<% if @host.new_record? -%>
|
|
<%= f.label :build, nil, :class => "span-1", :title => "Enable this host for provisioning" %>
|
|
<%= f.check_box :build, :checked => true, :class => "span-1 last" %>
|
|
<% end -%>
|
|
<% end -%>
|
|
|
|
<% field_set_tag 'Operating system settings', :id => "operatingsystem" do -%>
|
|
|
|
<%= render "common/os_selection/initial", { :f => f, :item=> @host } %>
|
|
|
|
<div class="span-24 last">
|
|
<%= f.label :root_pass, "Root password", :class => "span-3" %>
|
|
<%= f.password_field :root_pass, :class => "span-3" %>
|
|
<%= f.label :model_id, nil, :class => "span-4" %>
|
|
<%= f.collection_select :model_id, Model.all, :id, :to_label, {:include_blank => true}, {:class => "span-3"} %>
|
|
<%= f.label :serial, nil, :class => "span-2" %>
|
|
<%= f.select :serial, ["","0,9600n8","0,19200n8","1,9600n8","1,19200n8"], {}, {:class => "span-3"} %>
|
|
<%= link_to_function "Toggle custom disk layout", toggle_div("custom_disk"), :class => "span-5 last" %>
|
|
</div>
|
|
|
|
<div id="custom_disk" <%= display? @host.disk.empty? %>>
|
|
<%= f.text_area :disk, :size => "10x6", :class => "span-24 last", :title => 'Use custom Disk layout' %>
|
|
<br>
|
|
<small>What ever text 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
|
|
</small>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<%= observe_field(:host_domain_id,
|
|
:url => { :action => :domain_selected, :id => @host.id },
|
|
:update => :host_subnet,
|
|
:with => :domain_id)
|
|
%>
|