% javascript 'foreman_scc_manager/scc_accounts' %>
<%= form_for([:bulk_subscribe, @scc_account], method: :put) do |f| %>
<% def render_list_node(f, scc_product, parent_id = "") %>
<% if @scc_account.synced %>
<% @scc_account.scc_products.where(product_type: 'base').order(:friendly_name).each do |scc_product| %>
<% render_list_node(f, scc_product) %>
<% end %>
<% else %>
<%= _('Please sync your SUSE subscriptions first.') %>
<% submit_disabled = true %>
<% end %>
<%= submit_or_cancel f, false, {disabled: submit_disabled || false} %>
<% end %>