Project

General

Profile

Download (1.45 KB) Statistics
| Branch: | Tag: | Revision:
<%= f.error_messages(:object_name => "Subnet") %>
<p>
<%= f.label :name, nil, :class => "span-3" %>
<%= f.text_field :name, :class => "last" %>
</p>

<p>
<%= f.label :domain, nil, :class => "span-3" %>
<%= f.collection_select :domain_id, Domain.all, :id, :name, {:include_blank => true}, {:class => "last"} %>
</p>

<p>
<%= f.label :network, nil, :class => "span-3" %>
<%= f.text_field :network, :class => "last" %>
</p>

<p>
<%= f.label :mask, nil, :class => "span-3" %>
<%= f.text_field :mask, :title => "netmask for this subnet", :class => "last" %>
</p>

<p>
<%= f.label :ranges, nil, :class => "span-3" %>
<%= f.text_field :ranges, :title => "A list of comma separated single IPs or start-end couples.", :class => "last" %>
</p>

<p title="DHCP Proxy to use within this subnet">
<%= f.label :dhcp_id, "DHCP Proxy", :class => "span-3" %>
<%= f.collection_select :dhcp_id, Feature.find_by_name("DHCP").smart_proxies, :id, :name, {:include_blank => "None"}, {:class => "last"} %>
</p>
<p title="TFTP Proxy to use within this subnet">
<%= f.label :tftp_id, "TFTP Proxy", :class => "span-3" %>
<%= f.collection_select :tftp_id, Feature.find_by_name("TFTP").smart_proxies, :id, :name, {:include_blank => "None"}, {:class => "last"} %>
</p>

<p>
<%= f.label :vlanid, nil, :class => "span-3" %>
<%= f.text_field :vlanid, :class => "last" %>
</p>

<p>
<%= f.label :priority, nil, :class => "span-3"%>
<%= f.text_field :priority, :class => "last"%>
</p>
(1-1/6)