Source

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

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

{% block body %}
<h2>{{today|date:"F Y"}}</h2>
<table class="table table-striped table-bordered table-condensed">
<tr><td><b>Bank</b></td><td>${{banks|floatformat:2}}</td></tr>
<tr><td><b>Income</b></td><td>${{total_income|floatformat:2}}</td></tr>
<tr><td><b>Total</b></td><td>${{total|floatformat:2}}</td></tr>
{% for bill in bill_list %}
<tr><td><b><a href="{{bill.get_absolute_url}}">{{bill.payee.title}}</a></b></td><td>${{bill.split_amount|floatformat:2}}</td></tr>
{% endfor %}
<tr><td><b>Credit Cards</b></td><td>${{cc|floatformat:2}}</td></tr>
<tr><td><b>Total bills</b></td><td>${{bills|floatformat:2}}</td></tr>
<tr><td><b>Left</b></td><td>${{left|floatformat:2}}</td></tr>
<tr><td><b>Per week</b></td><td>${{per_week|floatformat:2}}</td></tr>
<tr><td><b>Weeks</b></td><td>{{paydays}}</td></tr>
</table>
{% if not month %}
<a href="?month={{next_month.month}}">{{next_month|date:"F Y"}}</a>
{% endif %}
{% endblock %}