Sha256: aa629c9bc2319303e0ec144574370cb48fdb91bde8d0dcb3525f2e582cb98703

Contents?: true

Size: 966 Bytes

Versions: 29

Compression:

Stored size: 966 Bytes

Contents

<% javascript 'compute_resource', 'lookup_keys' %>
<%= text_f f, :name if show_vm_name? %>
<% new = @host.nil? || @host.try(:new_record?) %>
<%= select_f f, :image, compute_resource.images, :uuid, :name, {},
               {:help_inline => :indicator,
               :label       => _('Image') } %>
<%= f.hidden_field :template if !new %>

<div class='compute_profile'>
  <%= selectable_f f, :cores, 1..compute_resource.max_cpu_count, { }, :class => "col-md-2", :label => _('Cores') %>
  <%= selectable_f f, :memory, memory_options(compute_resource.max_memory), { }, :class => "col-md-2", :label => _('Memory') %>
</div>
<%= text_f f, :cmd, :label => _('Command') %>
<% 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') } if new && controller_name != "compute_attributes" %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-4.1.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-4.1.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-4.0.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-3.2.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-3.2.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-3.1.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-3.0.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-2.1.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-2.1.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-2.0.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-2.0.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.4.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.4.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.3.1 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.3.0 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.2.4 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.2.3 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.2.2 app/views/compute_resources_vms/form/_docker.html.erb
foreman_docker-1.2.1 app/views/compute_resources_vms/form/_docker.html.erb