Source

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

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

{% block body %}
<table class="table table-condensed">
<tr><td><b>Title:</b></td><td>{{object.payee.title}}</td></tr>
<tr><td><b>Account:</b></td><td>{{object.payee.account}}</td></tr>
<tr><td><b>Split by:</b></td><td>{{object.payee.split_by}}</td></tr>
<tr><td><b>Due Date:</b></td><td>{{object.payee.due_date}}</td></tr>
<tr><td><b>Active:</b></td><td>{{object.payee.active}}</td></tr>
<tr><td><b>Amount:</b></td><td>${{object.split_amount|floatformat:2}}</td></tr>
<tr><td><b>Paid:</b></td><td>{{object.paid}}{% if not object.paid %}<i><a href="{{object.mark_paid}}"><i class="icon-check"></i></a></i>{% endif %}</td></tr>
<tr><td><b>Added on:</b></td><td>{{object.added_on}}</td></tr>
</table>
<div class="btn-group">
  <a href="{{object.get_edit_url}}" class="btn">Edit Bill</a>
  <a href="{{object.payee.get_edit_url}}" class="btn">Edit Payee</a>
</div>
{% if not object.paid %}
<form action="{{object.bank_payment}}" method="post">{% csrf_token %}
<b>Bank transfer:</b> {% bank_list %}
<input type="submit" value="Do Payment" class="btn btn-primary" />
</form>
<form action="{{object.cc_payment}}" method="post">{% csrf_token %}
<b>Credit Card payment:</b> {% cc_list %}
<input type="submit" value="Do Payment" class="btn btn-primary" />
</form>
{% endif %}
{% endblock %}