Project

General

Profile

« Previous | Next » 

Revision 03595234

Added by Daniel Lobato Garcia about 9 years ago

Fixes #9589 - Add documentation button to various models

(cherry picked from commit 8eed13de1dd3b4bc10e360427854041e236ae959)

View differences:

app/views/compute_resources/form/_vmware.html.erb
<%= text_f f, :server, :label => _("VCenter/Server"), :size => "col-md-8" %>
<%= text_f f, :server, :label => _("VCenter/Server"), :size => "col-md-8", :help_inline => documentation_button('5.2.9VMwareNotes') %>
<%= text_f f, :user %>
<%= password_f f, :password, :placeholder => password_placeholder(f.object) %>
<% datacenters = list_datacenters f.object%>
<%= selectable_f(f, :datacenter, datacenters, {}, {:label => _('Datacenter'),
:help_block => link_to_function(datacenters.empty? ? "Load Datacenters" : "Test Connection", "testConnection(this)",
:help_inline => link_to_function(datacenters.empty? ? "Load Datacenters" : "Test Connection", "testConnection(this)",
:class => "btn + #{datacenters.empty? ? "btn-default" : "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"), :size => "col-md-8" %>

Also available in: Unified diff