mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Bug fixes for specialized account pages (#1275)
* Default for credit card fields * Save institution on new account forms * Fix property, vehicle, loan, credit card pages
This commit is contained in:
parent
b4d0fdbe0d
commit
a2ab217925
10 changed files with 26 additions and 13 deletions
|
@ -2,15 +2,15 @@
|
|||
|
||||
<div class="grid grid-cols-3 gap-2">
|
||||
<%= summary_card title: t(".amount_owed") do %>
|
||||
<%= format_money(account.balance) %>
|
||||
<%= format_money(account.balance_money) %>
|
||||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".available_credit") do %>
|
||||
<%= format_money(account.credit_card.available_credit) || t(".unknown") %>
|
||||
<%= format_money(account.credit_card.available_credit_money) || t(".unknown") %>
|
||||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".minimum_payment") do %>
|
||||
<%= format_money(account.credit_card.minimum_payment) || t(".unknown") %>
|
||||
<%= format_money(account.credit_card.minimum_payment_money) || Money.new(0, account.currency) %>
|
||||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".apr") do %>
|
||||
|
@ -22,6 +22,6 @@
|
|||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".annual_fee") do %>
|
||||
<%= format_money(account.credit_card.annual_fee) || t(".unknown") %>
|
||||
<%= format_money(account.credit_card.annual_fee_money) || Money.new(0, account.currency) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".remaining_principal") do %>
|
||||
<%= format_money account.balance %>
|
||||
<%= format_money account.balance_money %>
|
||||
<% end %>
|
||||
|
||||
<%= summary_card title: t(".interest_rate") do %>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div>
|
||||
<h2 class="font-medium text-xl"><%= @account.name %></h2>
|
||||
|
||||
<% if @account.property? && @account.property.address %>
|
||||
<% if @account.property? && @account.property.address&.line1.present? %>
|
||||
<p class="text-gray-500"><%= @account.property.address %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue