Revision 4c091cd8
Added by Ohad Levy over 12 years ago
- ID 4c091cd8bfb4efbdc116743109c0a30de2f97d90
app/views/subnets/_form.html.erb | ||
---|---|---|
<% form_for @subnet do |f| %>
|
||
<%= f.error_messages %>
|
||
<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>
|
||
<%= render 'fields', :f => f %>
|
||
<p><%= f.submit %></p>
|
||
<% end %>
|
Also available in: Unified diff
fixes #1201 - Import Subnets from DHCP server