Revision 909cac51
Added by Ben Bettridge about 7 years ago
app/views/compute_resources_vms/form/_hypervisors.html.erb | ||
---|---|---|
<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' %>
|
||
<%= selectable_f f, :hypervisor_host,
|
||
[[_("Automatic allocation"), ""]] + xen_hypervisor_map(compute_resource),
|
||
{},
|
||
{ :class => 'form-control span2',
|
||
:disabled => (controller_name != 'hosts'),
|
||
:label => 'Hypervisor'
|
||
}
|
||
%>
|
||
</div>
|
||
</div>
|
Also available in: Unified diff
Cache Templates, Networks & Storage Pools
closes GH-52