Sha256: d3a258484ab07e2cc4262b053594aa936d569bcb7e573dec4ce2c5ac917cbde9

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

<%= select_f f, :template_id, compute_resource.flavors, :id, :to_label, {}, :label => _('Templates') %>
<%= selectable_f f, :vcpu, 1..8, { :include_blank => _("Template default")}, :label => _('VCPUs') %>
<%= selectable_f f, :memory,[512, 1024, 2048, 4096] , { :include_blank => _("Template default")}, :class => "col-md-2", :label => _('Memory') %>
<%= select_f f, :gid, compute_resource.groups, :id, :to_label, { :include_blank => _("User default")}, :label => _('One Group') %>

<!--NICS -->
<div class="children_fields">
  <%= new_child_fields_template(f, :vminterfaces, {
      :object  => compute_resource.new_vminterface,
      :partial => 'compute_resources_vms/form/one/network', :form_builder_attrs => { :compute_resource => compute_resource } }) %>
  <%= field_set_tag "Virtual Network", :id => "network_vminterfaces", :title => _('Networks') do %>
    <%= f.fields_for :vminterfaces do |i| %>
      <%= render 'compute_resources_vms/form/one/network', :f => i, :compute_resource => compute_resource %>
    <% end %>
    <%= add_child_link '+ ' + _("Add Interface"), :vminterfaces, { :class => "info disable-unsupported", :title => _('add new network interface') } %>
  <% end %>
</div>



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_one-0.2 app/views/compute_resources_vms/form/_one.html.erb
foreman_one-0.1 app/views/compute_resources_vms/form/_one.html.erb