%= turbo_frame_tag "modal" do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".link_enable_banking_title")) %> <% dialog.with_body do %> <% items = local_assigns[:enable_banking_items] || @enable_banking_items || Current.family.enable_banking_items.where.not(client_certificate: nil) %> <% if items&.any? %> <% # Find the first item with valid session to use for "Add Connection" button item_for_new_connection = items.find(&:session_valid?) # Check if any item needs initial connection (configured but no session yet) item_needing_connection = items.find { |i| !i.session_valid? && !i.session_expired? } %>
<%= item.aspsp_name || t(".connected_bank") %>
<%= t(".session_expires") %>: <%= item.session_expires_at&.strftime("%b %d, %Y") || t(".unknown") %>
<%= item.aspsp_name || t(".connection") %>
<%= t(".session_expired") %>
<%= t(".configured") %>
<%= t(".ready_to_connect") %>
<%= t(".not_configured") %>
<%= t(".not_configured_description") %>
<%= t(".setup_steps_title") %>