mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
* Integrate money-rails gem * Fix Lint issues * Basic test for monetize feature * Merge main branch * Changes to monetize balance field --------- Co-authored-by: Zach Gollwitzer <zach.gollwitzer@gmail.com>
18 lines
650 B
Plaintext
18 lines
650 B
Plaintext
|
|
<h2 class="text-2xl font-semibold font-display">Cash</h2>
|
|
<h3 class="mt-1 mb-4 text-sm text-gray-500"><%#= number_to_currency Current.family.cash_balance %></h3>
|
|
|
|
<% Current.family.accounts.each do |account| %>
|
|
<div class="flex items-center justify-between px-3 py-3 mb-2 bg-white shadow-sm rounded-xl">
|
|
<div class="flex items-center text-sm">
|
|
<%= account.name %>
|
|
</div>
|
|
<div class="flex items-center text-sm">
|
|
<%= account.accountable %>
|
|
</div>
|
|
<p class="text-sm text-right">
|
|
<span class="block mb-1"><%= humanized_money_with_symbol account.balance %></span>
|
|
</p>
|
|
</div>
|
|
<% end %>
|