Revision 617ee75f
Added by Amos Benari almost 11 years ago
- ID 617ee75f8c0f8d239564f3fd48d92a2d772eeb8b
- Parent d30ac557
app/views/compute_resources/form/_vmware.html.erb | ||
---|---|---|
<%= text_f f, :server, :label => _("VCenter/Server"), :class => "input-xlarge" %>
|
||
<%= text_f f, :user %>
|
||
<%= password_f f, :password, :placeholder => password_placeholder(f.object) %>
|
||
<% datacenters = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.datacenters rescue []%>
|
||
<% datacenters = list_datacenters f.object%>
|
||
<%= selectable_f(f, :uuid, datacenters, {}, {:label => _('Datacenter'),
|
||
:help_inline => link_to_function(datacenters.empty? ? "Load Datacenters" : "Test Connection", "testConnection(this)",
|
||
: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 }) %>
|
||
<%= text_f f, :pubkey_hash, :disabled => true, :label => _("Fingerprint"), :class=>"input-xxlarge" %>
|
||
<%= f.hidden_field(:pubkey_hash) if f.object.uuid.present? %>
|
Also available in: Unified diff
fixes #2656 error connecting to vsphere after upgrade to ruby 1.9.3