% title (_("Product Selection for Account %s") % @scc_account) %>
<% 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_filtered_products(@scc_account.scc_products).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 %>