<%= 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 %>
<%= selectable_f f, :katello_gpg_key_id, @selectable_gpg_keys, {},
{ :include_blank => _("None"),
:label => _('Use GPG key for SUSE products'),
:selected => @scc_account.katello_gpg_key_id,
:help_block => _("Use this setting if you want to automatically add a GPG key to your SUSE products upon subscription. You can change this setting in the 'Content' > 'Products' menu, later.") } %>
<%= selectable_f f, :download_policy, SccAccount::download_policy_selection_values,
{ :label => _('Download Policy'), :help_block => _("The default download policy for repositories which were created using this SCC Account.") } %>
<%= selectable_f f, :mirroring_policy, SccAccount::mirroring_policy_selection_values,
{ :label => _('Mirroring Policy'), :help_block => _("The default mirroring policy for repositories which were created using this SCC Account.") } %>
<%= f.hidden_field :organization_id %>
<%= submit_or_cancel f %>
<%= 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 ) %>