Sha256: 5c1174050d2ceec2c0f83b571d686ce9e51600a94049011fce95ef2bea1050df

Contents?: true

Size: 1.8 KB

Versions: 6

Compression:

Stored size: 1.8 KB

Contents

<% javascript 'foreman_scc_manager/scc_accounts'  %>

<%= form_for(@scc_account) do |f| %>
  <%= base_errors_for @scc_account %>
  <ul class="nav nav-tabs" data-tabs="tabs">
    <li class="active"><a href="#primary" data-toggle="tab"><%= _("SUSE Customer Center account") %></a></li>
  </ul>

  <div class="tab-content">
    <div class="tab-pane active" id="primary">
      <div>
        <%= text_f f, :name %>
        <%= text_f f, :login, :help_block => _("Use your 'Organization credentials' obtained from the SUSE Customer Center.") %>
        <%= password_f f, :password %>
        <%= text_f f, :base_url, label: _('Base URL') %>
        <%= selectable_f f, :interval, SccAccount::TYPES, {},
            { :label => _('Sync interval'), :help_block => _("The sync interval is used to periodically update the SCC authentication tokens of any imported products.") } %>
        <%= field f, :sync_date, label: _('Sync Date') do
          f.datetime_field :sync_date, placeholder: Time.now
        end %>
        <div class='clearfix'>
          <div class='form-group'>
            <div class='col-md-2'></div>
            <div class='col-md-4'>
              <%= spinner_button_f(f, _('Test Connection'), '',
                                   id: 'test_scc_connection_btn',
                                   spinner_id: 'test_scc_connection_indicator',
                                   class: 'btn-default',
                                   'data-url': @scc_account.id ? test_connection_scc_account_path : test_connection_scc_accounts_path ) %>
            </div>
            <div class='col-md-2'>
              <span id='connection_test_result'></span>
            </div>
          </div>
        </div>
        <%= f.hidden_field :organization_id %>
        <%= submit_or_cancel f %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_scc_manager-1.8.5 app/views/scc_accounts/_form.html.erb
foreman_scc_manager-1.8.4 app/views/scc_accounts/_form.html.erb
foreman_scc_manager-1.7.1 app/views/scc_accounts/_form.html.erb
foreman_scc_manager-1.8.3 app/views/scc_accounts/_form.html.erb
foreman_scc_manager-1.8.2 app/views/scc_accounts/_form.html.erb
foreman_scc_manager-1.8.1 app/views/scc_accounts/_form.html.erb