foreman/app/views/compute_resources/form/_openstack.html.erb @ bf4a13d3
bf4a13d3 | Walden Raines | <%= text_f f, :url, :size => "col-md-8", :help_block => _("e.g. http://openstack:5000/v2.0/tokens") %>
|
|
74e0b0e3 | Lukas Zapletal | <%= text_f f, :user %>
|
|
3595a70c | Joseph Mitchell Magen | <%= password_f f, :password %>
|
|
132a991c | Ohad Levy | ||
<% tenants = f.object.tenants rescue [] %>
|
|||
93117958 | Bryan Kearney | <%= selectable_f(f, :tenant, tenants, {}, {:label => _('Tenant'), :disabled => tenants.empty?,
|
|
:help_inline => link_to_function(tenants.empty? ? _("Load Tenants") : _("Test Connection"), "testConnection(this)",
|
|||
bf4a13d3 | Walden Raines | :class => "btn + #{tenants.empty? ? "btn-default" : "btn-success"}",
|
|
feacea35 | Amos Benari | :'data-url' => test_connection_compute_resources_path) + image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
|