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/_gce.html.erb
<%= text_f f, :project, :label => _("Google Project ID") %>
<%= text_f f, :email, :label => _("Client Email"), :class => 'span8' %>
<%= text_f f, :key_path, :label => _("Certificate path"), :help_inline => _('The file path where your p12 file is located'), :class => 'span8' %>
<%= text_f f, :email, :label => _("Client Email"), :class => 'col-md-8' %>
<%= text_f f, :key_path, :label => _("Certificate path"), :help_inline => _('The file path where your p12 file is located'), :class => 'col-md-8' %>
<% zones = f.object.zones rescue [] %>
<%= selectable_f(f, :zone, zones, {}, {:label => _('Zone'), :disabled => zones.empty?,
:help_inline => link_to_function(zones.empty? ? _("Load zones") : _("Test Connection"), "testConnection(this)",
:class => "btn + #{zones.empty? ? "" : "btn-success"}",
:'data-url' => test_connection_compute_resources_path) + image_tag('spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
:class => "btn + #{zones.empty? ? "btn-default" : "btn-success"}",
:'data-url' => test_connection_compute_resources_path) + image_tag('spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>

Also available in: Unified diff