|
<%= text_f f, :url, :class => "input-xlarge", :help_block => _("e.g. https://identity.api.rackspacecloud.com") %>
|
|
<%= text_f f, :user %>
|
|
<%= password_f f, :password, :label => _("API Key") %>
|
|
<% flavors = f.object.flavors rescue [] -%>
|
|
<%= selectable_f(f, :region, f.object.regions, {}, {:label => _('Region'),
|
|
:help_inline => link_to_function(_("Test Connection"), "testConnection(this)",
|
|
:class => "btn + #{flavors.empty? ? "" : "btn-success"}",
|
|
:'data-url' => test_connection_compute_resources_path) + image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
|