<%= icon "alert-circle", size: "lg", class: "text-destructive" %>
<%= t(".fetch_failed") %>
<%= @api_error %>
<%= icon "check-circle", size: "lg", class: "text-success" %>
<%= t(".no_accounts_to_setup") %>
<%= t(".all_accounts_linked") %>
<%= lunchflow_account.name %>
<%= label_tag "account_types[#{lunchflow_account.id}]", t(".account_type_label"),
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_types[#{lunchflow_account.id}]",
options_for_select(@account_type_options, "skip"),
{ class: "appearance-none bg-container border border-primary rounded-md px-3 py-2 text-sm leading-6 text-primary focus:border-primary focus:ring-1 focus:ring-primary focus:outline-none w-full",
data: {
action: "change->account-type-selector#updateSubtype"
} } %>
<% @subtype_options.each do |account_type, subtype_config| %>
<%= render "lunchflow_items/subtype_select", account_type: account_type, subtype_config: subtype_config, lunchflow_account: lunchflow_account %>
<% end %>