Project

General

Profile

Download (1.84 KB) Statistics
| Branch: | Tag: | Revision:
<% field_set_tag 'Unattended settings', :id => "unattended" do -%>
<% field_set_tag 'Network settings', :id => "network" do -%>
<table>
<tr>
<td>Domain</td>
<td><%= f.collection_select :domain_id, Domain.all, :id, :to_label %></td>
<td>IP</td>
<td><%= f.text_field :ip, :size => 16 %></td>
<td>MAC</td>
<td><%= f.text_field :mac, :size => 17 %></td>
</tr>
</table>
<% end -%>

<% field_set_tag 'Operating system settings', :id => "operatingsystem" do -%>
<table>
<tr>
<td colspan="6">
<span id="architecture">
Architecture
<%= f.collection_select :architecture_id, Architecture.all, :id, :to_label, :include_blank => true %>
<span id="host_os">
<% if @architecture -%>
<%= render "architecture" -%>
<% end -%>
</span>
</span>
</td>
</tr>
<tr>
<td>Root password</td>
<td><%= f.password_field :root_pass %></td>
<td>Model</td>
<td><%= f.collection_select :model_id, Model.all, :id, :to_label, :include_blank => true %></td>
<td>Serial</td>
<td><%= f.select :serial, ["","0,9600n8","0,19200n8","1,9600n8","1,19200n8"] %></td>
</tr>
<tr>
<td colspan="6">
<%= link_to_function "Switch to custom disk layout", toggle_div("custom_disk") %>
<div id="custom_disk", style=display:none;>
Custom Disk layout
<%= f.text_area :disk, :size => "50x10", :disabled => true %>
</div>
</td>
</tr>
</table>
<% end -%>

<% end -%>

<%= observe_field(:host_architecture_id,
:url => { :action => :architecture_selected, :id => @host.id },
:update => :host_os,
:with => :architecture_id)
%>
(9-9/21)