{% extends "base.html" %} {% block title %}Accounts{% endblock %} {% block page_title %}Accounts{% endblock %} {% block topbar_actions %} New Account {% endblock %} {% block content %}
Bank Accounts {{ bank_count }} Credit Cards {{ credit_count }}
{% if accounts %}
{% for acct in accounts %}
{{ acct.name }}
{{ acct.account_type | replace('_',' ') | title }}
{% if tab == 'credit' %} {% set owed = [0, -acct.balance] | max %} {% set charges = monthly_charges.get(acct.id, 0) %}
Amount Owed
{% if owed > 0 %}-{% endif %}{{ owed | currency }}
This Month
{% if charges > 0 %}-{% endif %}{{ charges | currency }}
{% endif %} {% if acct.notes %}
{{ acct.notes }}
{% endif %} {% if tab == 'credit' %} {% else %} {% endif %}
{% endfor %}
{% else %}
{% if tab == 'credit' %}
No credit cards yet

Add a credit card account to track charges and payments.

{% else %}
No bank accounts yet

Add your checking, savings, or cash accounts.

{% endif %} New Account
{% endif %} {% endblock %}