Source

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

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

{% block body %}
<table class="table">
<tr><td><b>Name:</b></td><td><a href="{{object.roommate.get_absolute_url}}">{{object.roommate}}</a></td></tr>
<tr><td><b>Bill:</b></td><td><a href="{{object.for_bill.get_absolute_url}}">{{object.for_bill.payee}}</a></td></tr>
<tr><td><b>Amount:</b></td><td>${{object.amount|floatformat:2}}</td></tr>
{% if object.paid %}
<tr><td><b>Paid on:</b></td><td>{{object.pay_date}}</td></tr>
{% else %}
<tr><td><b>Past Due:</b></td><td>{{object.past_due}}</td></tr>
<tr><td><b>Due Date:</b></td><td>{{object.for_bill.payee.due_date}}</td></tr>
{% endif %}
</table>
{% if not object.paid %}
<form action="{{object.make_payment}}" method="post">{% csrf_token %}
<b>Payment transfer:</b> <input type="text" value="{{object.amount|floatformat:2}}" name="amount"/>{% bank_list %}
<input type="submit" value="Do Payment" class="btn btn-primary" />
</form>
{% endif %}
{% endblock %}