Sha256: d0d3d724a42d3a5fbcb2cf0bf679d48a772baf70a6dbec6aa2b72c41e8aab330

Contents?: true

Size: 1.38 KB

Versions: 9

Compression:

Stored size: 1.38 KB

Contents

<%= javascript_tag("$(document).on('ContentLoad', tfm.numFields.initAll)"); %>

<%= text_f f, :name, :label => _('Name'), :label_size => "col-md-2", :disabled => !new_vm if show_vm_name? %>

<%= counter_f f, :cpu_cores, :disabled => !new_vm, :label => _('CPUs'), :label_size => 'col-md-2', :'data-soft-max' => compute_resource.max_cpu_count %>

<%= byte_size_f f, :memory, :disabled => !new_vm, :label => _('Memory'), :label_size => "col-md-2", :'data-soft-max' => compute_resource.max_memory %>

<% checked = params[:host] && params[:host][:compute_attributes] && params[:host][:compute_attributes][:start] || '1' %>
<%= checkbox_f f, :start, { :checked => (checked == '1'), :help_inline => _("Power ON this machine"), :label => _('Start'), :label_size => "col-md-2"} if new_vm && controller_name != "compute_attributes" %>


<% unless local_assigns[:hide_image] %>
  <%
     arch ||= nil ; os ||= nil
     images = possible_images(compute_resource, arch, os)
  -%>

  <div id='image_selection'>
    <%= select_f f, :image_id, images, :uuid, :name,
                 { :include_blank => (images.empty? || images.size == 1) ? false : _('Please select an image') },
                 { :disabled => images.empty?, :label => _('Image'), :label_size => "col-md-2" } %>
  </div>
<% end %>

<%= javascript_include_tag("foreman_kubevirt/nic_info.js") %>
<%= javascript_include_tag("foreman_kubevirt/kubevirt.js") %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_kubevirt-0.1.9 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.8 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.7 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.5 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.4 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.3 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.2 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.1 app/views/compute_resources_vms/form/kubevirt/_base.html.erb
foreman_kubevirt-0.1.0 app/views/compute_resources_vms/form/kubevirt/_base.html.erb