<%= label_tag "account_types[#{simplefin_account.id}]", "Account Type:",
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_types[#{simplefin_account.id}]",
options_for_select(@account_type_options),
{ class: "w-full px-3 py-2 border border-primary rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-blue-600",
data: {
action: "change->account-type-selector#updateSubtype"
} } %>
<%= label_tag "account_subtypes[#{simplefin_account.id}]", "Account Subtype:",
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_subtypes[#{simplefin_account.id}]",
options_for_select([["Select subtype", ""]] + @depository_subtypes,
simplefin_account.name.downcase.include?("checking") ? "checking" :
simplefin_account.name.downcase.include?("savings") ? "savings" : ""),
{ class: "w-full px-3 py-2 border border-primary rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-blue-600" } %>
<%= label_tag "account_subtypes[#{simplefin_account.id}]", "Credit Card Type:",
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_subtypes[#{simplefin_account.id}]",
options_for_select([["Select type", ""]] + @credit_card_subtypes),
{ class: "w-full px-3 py-2 border border-primary rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-blue-600" } %>
<%= label_tag "account_subtypes[#{simplefin_account.id}]", "Investment Type:",
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_subtypes[#{simplefin_account.id}]",
options_for_select([["Select type", ""]] + @investment_subtypes),
{ class: "w-full px-3 py-2 border border-primary rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-blue-600" } %>
<%= label_tag "account_subtypes[#{simplefin_account.id}]", "Loan Type:",
class: "block text-sm font-medium text-primary mb-2" %>
<%= select_tag "account_subtypes[#{simplefin_account.id}]",
options_for_select([["Select type", ""]] + @loan_subtypes),
{ class: "w-full px-3 py-2 border border-primary rounded-lg focus:ring-2 focus:ring-blue-600 focus:border-blue-600" } %>
No additional options needed for Other Assets.