<% nat = compute_resource.networks selected = "" if params && params['host'] && params['host']['compute_attributes'] selected = params['host']['compute_attributes']['VIFs']['print'] elsif new.__vifs selected = new.__vifs['print'] end -%>
<%= selectable_f f, :print, nat.map(&:name), { :include_blank => nat.any? ? false : _("No networks"), :selected => selected }, { :class => "span2", :label => _("Network") } %>