Sha256: 2c19dbda34af2dc40a720263bd77c34926906931a420d3eb66460aeaaba5f54c

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

<%= password_f f, :password, :label => _("API Key"), :unset => unset_password? %>
<% regions = f.object.regions rescue [] %>

<div id='region_selection'>
  <%= selectable_f(f, :region, regions.map(&:slug), {},
    :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) +
     hidden_spinner('', :id => 'test_connection_indicator').html_safe) %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_digitalocean-1.3.0 app/views/compute_resources/form/_digitalocean.html.erb
foreman_digitalocean-1.2.0 app/views/compute_resources/form/_digitalocean.html.erb
foreman_digitalocean-1.1.0 app/views/compute_resources/form/_digitalocean.html.erb