Sha256: d3f82e6166012c5e4b3c413891a9727a21d3cbfe587b68533d3ee2562dc14336

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

<%= 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, :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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_digitalocean-1.0.0 app/views/compute_resources/form/_digitalocean.html.erb