mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Move accountable partials * Split accountables into separate view partials * Fix test * Add form to permitted partials * Fix failing system tests * Update new account modal views * New sync algorithm implementation * Update account system test assertions to match new behavior * Fix off by 1 date error * Revert new balance sync algorithm * Add missing account overviews
48 lines
1.7 KiB
Text
48 lines
1.7 KiB
Text
<% content_for :sidebar do %>
|
|
<%= render "settings/nav" %>
|
|
<% end %>
|
|
|
|
<div class="space-y-4">
|
|
<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 %>
|
|
|
|
<%= render "sync_all_button" %>
|
|
|
|
<%= link_to new_account_path(step: "method"),
|
|
data: { turbo_frame: "modal" },
|
|
class: "btn btn--primary flex items-center gap-1" do %>
|
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
|
<p class="text-sm font-medium"><%= t(".new_account") %></p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<% if @accounts.empty? && @institutions.empty? %>
|
|
<%= render "empty" %>
|
|
<% else %>
|
|
<div class="space-y-2">
|
|
<% @institutions.each do |institution| %>
|
|
<%= render "institution_accounts", institution: %>
|
|
<% end %>
|
|
|
|
<% if @accounts.any? %>
|
|
<%= render "institutionless_accounts", accounts: @accounts %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= settings_nav_footer %>
|
|
</div>
|