<% nat = compute_resource.subnets.collect { |s| [ "#{s.id.split('/')[8]}-#{s.name} #{s.address_prefix}", s.id ] } %> <%= selectable_f f, :network, options_for_select(nat, :selected => f.object.network), { :include_blank => _('Select') }, { :label => _('Azure Subnet'), :required => true, :id => 'azure_rm_subnet', :class => "col-lg-8" } %> <%= selectable_f f, :public_ip, options_for_select(['None', 'Dynamic', 'Static'], :selected => f.object.public_ip), {}, { :label => _("Public IP"), :label_size => "col-md-2" } %> <%= checkbox_f f, :private_ip, { :label => _("Static Private IP"), :label_size => "col-md-2" }, 'true', 'false' %>