2025-01-31 17:04:26 -05:00
|
|
|
<%# locals: (path:, us_link_token: nil, eu_link_token: nil) %>
|
2024-11-04 20:27:31 -05:00
|
|
|
|
|
|
|
<%= render layout: "accounts/new/container", locals: { title: t(".title"), back_path: new_account_path } do %>
|
|
|
|
<div class="text-sm">
|
2025-04-23 10:42:30 -03:00
|
|
|
<%= link_to path, class: "flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-surface border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-surface rounded-lg p-2" do %>
|
2024-11-04 20:27:31 -05:00
|
|
|
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">
|
2025-02-13 11:31:07 -05:00
|
|
|
<%= lucide_icon("keyboard", class: "text-secondary w-5 h-5") %>
|
2024-11-04 20:27:31 -05:00
|
|
|
</span>
|
|
|
|
<%= t("accounts.new.method_selector.manual_entry") %>
|
|
|
|
<% end %>
|
|
|
|
|
2025-01-31 17:04:26 -05:00
|
|
|
<% if us_link_token %>
|
2025-01-31 12:13:58 -06:00
|
|
|
<%# Default US-only Link %>
|
2025-02-12 11:22:30 -05:00
|
|
|
<button data-controller="plaid" data-action="plaid#open modal#close" data-plaid-region-value="us" data-plaid-link-token-value="<%= us_link_token %>" class="flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-gray-50 border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-gray-50 rounded-lg p-2">
|
2024-11-15 13:49:37 -05:00
|
|
|
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">
|
2025-02-13 11:31:07 -05:00
|
|
|
<%= lucide_icon("link-2", class: "text-secondary w-5 h-5") %>
|
2024-11-15 13:49:37 -05:00
|
|
|
</span>
|
2025-01-31 17:04:26 -05:00
|
|
|
<%= t("accounts.new.method_selector.connected_entry") %>
|
2024-11-15 13:49:37 -05:00
|
|
|
</button>
|
2025-01-31 17:04:26 -05:00
|
|
|
<% end %>
|
2025-01-31 12:13:58 -06:00
|
|
|
|
2025-01-31 17:04:26 -05:00
|
|
|
<%# EU Link %>
|
|
|
|
<% if eu_link_token %>
|
2025-02-12 11:22:30 -05:00
|
|
|
<button data-controller="plaid" data-action="plaid#open modal#close" data-plaid-region-value="eu" data-plaid-link-token-value="<%= eu_link_token %>" class="flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-gray-50 border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-gray-50 rounded-lg p-2">
|
2025-01-31 17:04:26 -05:00
|
|
|
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">
|
2025-02-13 11:31:07 -05:00
|
|
|
<%= lucide_icon("link-2", class: "text-secondary w-5 h-5") %>
|
2025-01-31 17:04:26 -05:00
|
|
|
</span>
|
|
|
|
<%= t("accounts.new.method_selector.connected_entry_eu") %>
|
|
|
|
</button>
|
2024-11-15 13:49:37 -05:00
|
|
|
<% end %>
|
2024-11-04 20:27:31 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|