<%= render 'nic/base_form', :f => f %>

<%= checkbox_f f, :virtual,
               :disabled => !f.object.new_record?,
               :label => _("Virtual NIC"),
               :help_inline => _("Enable if this is an alias or VLAN interface, note that alias can be used only with static boot mode subnet"),
               :class => 'virtual' %>

<% hidden_class = f.object.virtual ? '' : 'hidden' %>
<%= content_tag :div, :class => "virtual_form #{hidden_class}" do %>
  <%= render 'nic/virtual_form', :f => f, :attached_to_required => true %>
<% end %>

<%= render 'nic/provider_specific_form', :f => f %>
