2024-04-18 07:56:51 -04:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render "settings/nav" %>
|
|
|
|
<% end %>
|
2024-06-13 14:37:27 -04:00
|
|
|
|
2024-03-07 10:55:51 -05:00
|
|
|
<div class="space-y-4">
|
2024-06-13 14:37:27 -04:00
|
|
|
<header class="flex justify-between items-center text-gray-900 font-medium">
|
|
|
|
<h1 class="text-xl"><%= t(".accounts") %></h1>
|
|
|
|
<div class="flex items-center gap-5">
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<%= contextual_menu do %>
|
|
|
|
<div class="w-48 p-1 text-sm leading-6 text-gray-900 bg-white shadow-lg shrink rounded-xl ring-1 ring-gray-900/5">
|
|
|
|
<%= link_to new_institution_path,
|
|
|
|
class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg font-normal",
|
|
|
|
data: { turbo_frame: "modal" } do %>
|
|
|
|
<%= lucide_icon "building-2", class: "w-5 h-5 text-gray-500" %>
|
|
|
|
<span class="text-black"><%= t(".add_institution") %></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2024-09-13 17:19:20 +02:00
|
|
|
<%= render "sync_all_button" %>
|
2024-09-11 17:24:01 -04:00
|
|
|
|
2024-10-18 14:37:42 -04:00
|
|
|
<%= link_to new_account_path(step: "method"),
|
2024-06-13 14:37:27 -04:00
|
|
|
data: { turbo_frame: "modal" },
|
2024-09-11 17:24:01 -04:00
|
|
|
class: "btn btn--primary flex items-center gap-1" do %>
|
2024-03-07 10:55:51 -05:00
|
|
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
2024-06-13 14:37:27 -04:00
|
|
|
<p class="text-sm font-medium"><%= t(".new_account") %></p>
|
2024-03-07 10:55:51 -05:00
|
|
|
<% end %>
|
2024-02-02 23:06:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-13 14:37:27 -04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<% if @accounts.empty? && @institutions.empty? %>
|
|
|
|
<%= render "empty" %>
|
2024-03-07 10:55:51 -05:00
|
|
|
<% else %>
|
2024-06-13 14:37:27 -04:00
|
|
|
<div class="space-y-2">
|
|
|
|
<% @institutions.each do |institution| %>
|
|
|
|
<%= render "institution_accounts", institution: %>
|
2024-03-07 10:55:51 -05:00
|
|
|
<% end %>
|
2024-06-13 14:37:27 -04:00
|
|
|
|
2024-09-11 17:24:01 -04:00
|
|
|
<% if @accounts.any? %>
|
|
|
|
<%= render "institutionless_accounts", accounts: @accounts %>
|
|
|
|
<% end %>
|
2024-03-07 10:55:51 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2024-06-13 14:37:27 -04:00
|
|
|
|
2024-08-27 17:10:31 -04:00
|
|
|
<%= settings_nav_footer %>
|
2024-03-07 10:55:51 -05:00
|
|
|
</div>
|