43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
{% extends "trading/base.html" %}
|
|
{% load bootstrap4 %}
|
|
{% load humanize %}
|
|
|
|
{% block title %}
|
|
{% with title="Transaction request detail" %}
|
|
{{ block.super }}
|
|
{% endwith %}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Commodity</th>
|
|
<th>Amount</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><a href="{% url "trading:commodity_detail" object.source_sends.pk %}">{{ object.source_sends.name }}</a></td>
|
|
<td>
|
|
<span class="{% if object.source == request.user %}debit{% else %}credit{% endif %}">
|
|
{{object.source_amount|intcomma}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="{% url "trading:commodity_detail" object.dest_sends.pk %}">{{ object.dest_sends.name }}</a></td>
|
|
<td>
|
|
<span class="{% if object.dest == request.user %}debit{% else %}credit{% endif %}">
|
|
{{object.dest_amount|intcomma}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|