Revision ab3d6fb4
Added by Daniel Lobato Garcia about 8 years ago
app/views/compute_resources/form/_digitalocean.html.erb | ||
---|---|---|
<%= text_f f, :user, :label => _("Client ID") %>
|
||
<%= password_f f, :password, :label => _("API Key") %>
|
||
|
||
<%= password_f f, :api_key, :label => _("API Key"), :unset => unset_password? %>
|
||
<% regions = f.object.regions rescue [] %>
|
||
|
||
<div id='region_selection'>
|
||
<%= select_f(f, :region, regions, :id, :name, {}, {:label => _('Default Region'), :disabled => regions.empty?,
|
||
:help_inline => link_to_function(regions.empty? ? _("Load Regions") : _("Test Connection"), "testConnection(this)",
|
||
: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 }) %>
|
||
<%= select_f(
|
||
f, :region, regions, :slug, :name, {},
|
||
:label => _('Default Region'), :disabled => regions.empty?,
|
||
:help_inline => link_to_function(
|
||
regions.empty? ? _("Load Regions") : _("Test Connection"), "testConnection(this)",
|
||
:class => "btn + #{regions.empty? ? "btn-default" : "btn-success"}",
|
||
:'data-url' => test_connection_compute_resources_path) +
|
||
spinner('', :id => 'test_connection_indicator',
|
||
:class => 'hide').html_safe) %>
|
||
</div>
|
Also available in: Unified diff
Fixes #11332 - DigitalOcean API v2 support
This should allow provisioning using API v2. It relies on Fog 1.36 at
The plugin now:least to work, so 1.10 and older versions of Foreman will not work with
this plugin unfortunately.
client_id
task