%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: "Set Up Your Enable Banking Accounts") do %>
Choose the correct account type for each Enable Banking account:
Historical Data Range:
<%= form.date_field :sync_start_date, label: "Start syncing transactions from:", value: @enable_banking_item.sync_start_date || 3.months.ago.to_date, min: 1.year.ago.to_date, max: Date.current, class: "w-full max-w-xs rounded-md border border-primary px-3 py-2 text-sm bg-container-inset text-primary", help_text: "Select how far back you want to sync transaction history. Maximum 1 year of history available." %><%= enable_banking_account.account_type_display %>
<% end %> <% if enable_banking_account.current_balance.present? %>Balance: <%= number_to_currency(enable_banking_account.current_balance, unit: enable_banking_account.currency) %>
<% end %>