Source

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

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

{% block body %}
<table class="table table-condensed">
<tr><td><b>Title:</b></td><td>{{object.title}}</td></tr>
<tr><td><b>Income:</b></td><td>${{object.amount|floatformat:2}}</td></tr>
<tr><td><b>Per month:</b></td><td>{{object.per_month}}</td></tr>
<tr><td><b>Active:</b></td><td>{{object.active}}</td></tr>
<tr><td><b>Added on:</b></td><td>{{object.added_on}}</td></tr>
{% if object.per_month > 1 %}
<tr><td><b>Monthly Income:</b></td><td>${{object.monthly_amount|floatformat:2}}</td></tr>
{% endif %}
<tr><td><b>Yearly Income:</b></td><td>${{object.yearly_amount|floatformat:2}}</td></tr>
</table>
<a href="{{object.get_edit_url}}" class="btn">Edit Income</a><br/>
<form action="{{object.payday}}" method="post">{% csrf_token %}
<b>Payday transfer:</b> {% bank_list %}
<input type="submit" value="Do Payment" class="btn btn-primary" />
</form>
{% endblock %}