Source

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

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

{% block body %}
{% if not object.transaction %}<form action="{% url assign-transaction object.number %}" method="post">{% csrf_token %}{% endif %}
<table class="table table-condensed">
<tr><td><b>Cheque #</b></td><td>{{object.number}}</td></tr>
<tr><td><b>Amount</b></td><td>${{object.amount|floatformat:2}}</td></tr>
<tr><td><b>Transaction:</b></td><td>{% if object.transaction %}<a href="{{object.transaction.get_absolute_url}}">{{object.transaction}}</a>{% else %}{% transaction_list object.amount %}{% endif %}</td></tr>
<tr><td><b>Post Date:</b></td><td>{{object.post_date}}</td></tr>
</table>
{% if not object.transaction %}<input type="submit" value="Assign Transaction" class="btn btn-primary" /></form>{% endif %}
<p>{{object.memo|linebreaksbr}}</p>
{% if object.image %}<img src="{{object.image.url}}"/>{% endif %}
{% endblock %}