35 lines
739 B
HTML
35 lines
739 B
HTML
{% load bornhack %}
|
|
{% if invoice_list %}
|
|
<table class="table table-hover datatable">
|
|
<thead>
|
|
<tr>
|
|
<th>Invoice #</th>
|
|
<th>Username</th>
|
|
<th>Email</th>
|
|
<th>Invoice Date</th>
|
|
<th>Order</th>
|
|
<th>Paid</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for invoice in invoice_list %}
|
|
<tr>
|
|
<td>{{ invoice.id }}</td>
|
|
<td>{{ invoice.get_order.user.username }}</td>
|
|
<td>{{ invoice.get_order.user.email }}</td>
|
|
<td>{{ invoice.created|date }}</td>
|
|
<td>{{ invoice.get_order }}</td>
|
|
<td>{{ invoice.get_order.paid|truefalseicon }}</td>
|
|
<td>
|
|
n/a
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<h4>No invoices found.</h4>
|
|
{% endif %}
|
|
|