<%= turbo_frame_tag "modal" do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".title")) %> <% dialog.with_body do %>

<%= t(".description", product_name: product_name) %>

<%= hidden_field_tag :authenticity_token, form_authenticity_token %> <%= hidden_field_tag :accountable_type, @accountable_type %> <%= hidden_field_tag :return_to, @return_to %>
<% @available_accounts.each do |account| %> <% Rails.logger.debug "Sophtron account data: #{account.inspect}" %> <% has_blank_name = account[:account_name].blank? %> <% end %>
<%= render DS::Link.new( text: t(".cancel"), href: @return_to || new_account_path, variant: :secondary, data: { turbo_frame: "_top", action: "DS--dialog#close" } ) %> <%= render DS::Button.new(text: t(".link_accounts"), type: "submit") %>
<% end %> <% end %> <% end %>