1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00
Maybe/app/views/accounts/index.html.erb

18 lines
715 B
Text
Raw Normal View History

2024-02-02 23:06:29 +00:00
<h2 class="text-2xl font-semibold font-display"><%= t('.title')%></h2>
2024-02-05 10:36:46 +11:00
<h3 class="mt-1 mb-4 text-sm text-gray-500"><%#= number_to_currency Current.family.cash_balance %></h3>
2024-02-02 23:06:29 +00:00
2024-02-05 10:36:46 +11:00
<% Current.family.accounts.each do |account| %>
<div class="flex flex-row items-center justify-between px-3 py-3 mb-2 bg-white shadow-sm rounded-xl">
<div class="flex items-center w-1/3 text-sm">
2024-02-02 23:06:29 +00:00
<%= account.name %>
</div>
<div class="flex items-center w-1/3 text-sm">
<%= to_accountable_title(account.accountable) %>
2024-02-02 23:06:29 +00:00
</div>
<p class="flex w-1/3 text-sm text-right">
<span class="block mb-1"><%= format_currency account.converted_balance %></span>
2024-02-02 23:06:29 +00:00
</p>
</div>
<% end %>