Sha256: d9cc09bcbcbe53ed3fbd21c211b52b8c5eb7b32aff32eceaa90bcd1b2594d38d

Contents?: true

Size: 799 Bytes

Versions: 5

Compression:

Stored size: 799 Bytes

Contents

<%= text_f f, :url, :class => "input-xlarge", :help_block => _("e.g. https://ovirt.example.com:8443/api") %>
<%= text_f f, :user, :help_block => _("e.g. admin@internal") %>
<%= 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'),
                 :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 }) %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/compute_resources/form/_ovirt.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/compute_resources/form/_ovirt.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/compute_resources/form/_ovirt.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/compute_resources/form/_ovirt.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/compute_resources/form/_ovirt.html.erb