Project

General

Profile

« Previous | Next » 

Revision bf4a13d3

Added by Walden Raines over 10 years ago

Fixes #3811 updating to bootstrap 3

View differences:

app/views/compute_resources/form/_ec2.html.erb
<% regions = f.object.regions rescue [] %>
<%= selectable_f(f, :region, regions, {}, {:label => _('Region'), :disabled => regions.empty?,
:help_inline => link_to_function(regions.empty? ? _("Load Regions") : _("Test Connection"), "testConnection(this)",
:class => "btn + #{regions.empty? ? "" : "btn-success"}",
:class => "btn + #{regions.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 }) %>

Also available in: Unified diff