Sha256: f042c7292593f4dcc2e64b19da055ce24ab6020e906df56c18b55edc32630a75

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

<div id='templates' class=''>
  <div class="form-group">
    <%= selectable_f f, :hypervisor_host, [[_("Automatic allocation"), ""]] + compute_resource.available_hypervisors.map { |t| [t.name + " - " + (t.metrics.memory_free.to_f / t.metrics.memory_total.to_f * 100).round(2).to_s + "% free mem", t.name] }, {}, :class => 'form-control span2', :disabled => (controller_name != 'hosts'), :label => 'Hypervisor' %>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_xen-0.3.2 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.4.1 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.4.0 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.3.1 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.3.0 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.2.4 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.1.8 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.1.7 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.2.3 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.2.2 app/views/compute_resources_vms/form/_hypervisors.html.erb
foreman_xen-0.1.6 app/views/compute_resources_vms/form/_hypervisors.html.erb