Revision 180d7f43
Added by Jason Montleon over 10 years ago
app/views/compute_resources/form/_ovirt.html.erb | ||
---|---|---|
<%= password_f f, :password %>
|
||
<% datacenters = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.datacenters rescue []%>
|
||
<%= selectable_f(f, :uuid, datacenters, {}, {:label => _('Datacenter'),
|
||
:onchange => 'ovirt_datacenterSelected();',
|
||
:help_inline => link_to_function(datacenters.empty? ? _("Load Datacenters") : _("Test Connection"), "testConnection(this)",
|
||
:id => 'test_connection_button',
|
||
:class => "btn + #{datacenters.empty? ? "" : "btn-success"}",
|
||
:'data-url' => test_connection_compute_resources_path) + image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
|
||
<% quotas = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.quotas rescue []%>
|
||
<%= select_f f, :ovirt_quota, quotas, :id, :name, {}, :label => _("Quota ID") %>
|
Also available in: Unified diff
fixes #2288 - Add oVirt/RHEV Quota Support