Source

django-pim / pcbank / templates / pcbank / index.html

Full commit
{% extends "pcbank/base.html" %}

{% block body %}
<h2>Financial Overview</h2>
<table class="table">
<tr><td><b>Monthly Income:</b></td><td>${{income|floatformat:2}}</td></tr>
<tr><td><b><a href="{% url pcbank.views.bill_table %}">Current Bills</a>:</b></td><td>${{bills|floatformat:2}}</td></tr>
<tr><td><b><a href="{% url pcbank.views.credit_table %}">Total Credit</a>:</b></td><td>${{credit|floatformat:2}}</td></tr>
<tr><td><b>Total Debt:</b></td><td>${{debt|floatformat:2}}</td></tr>
<tr><td><b>Net Worth:</b></td><td>${{worth|floatformat:2}}</td></tr>
<tr><td><b>Available funds:</b></td><td>${{available_funds|floatformat:2}}</td></tr>
<tr><td><b>Roommates owing:</b></td><td>${{roommate_due|floatformat:2}}</td></tr>
</table>
<p><b>Net Worth</b> = <b>Total Bank Balances</b> - <b>Debt</b> - <b>Bills</b></p>
<p><b>Available Funds</b> = <b>Credit</b> + <b>Total Bank Balances</b> - <b>Bills</b></p>
{% endblock %}