67 lines
2.0 KiB
HTML
67 lines
2.0 KiB
HTML
{% extends "lingo/manager_base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar %}
|
|
<h2>{% trans 'Transactions' %}</h2>
|
|
<span class="actions">
|
|
<a href="{% url 'lingo-manager-paymentbackend-list' %}">{% trans 'Payment backends' %}</a>
|
|
<a href="{% url 'lingo-manager-regie-list' %}">{% trans 'Regies' %}</a>
|
|
<a href="{% url 'lingo-manager-transactions-download' %}">{% trans 'download CSV' %}</a>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form>
|
|
<p><input name="q" type="search" value="{{query}}"> <button>{% trans 'Search' %}</button>
|
|
<span class="help_text">{% trans "(supports order identifiers, transaction identifiers, and dates)" %}</span>
|
|
</p>
|
|
</form>
|
|
|
|
{% if object_list %}
|
|
<table class="main">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans 'Order Identifier' %}</th>
|
|
<th>{% trans 'Transaction Identifier' %}</th>
|
|
<th>{% trans 'Date' %}</th>
|
|
<th>{% trans 'User' %}</th>
|
|
<th>{% trans 'Amount' %}</th>
|
|
<th colspan="2">{% trans 'Items' %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for object in object_list %}
|
|
<tr>
|
|
<td rowspan="{{object.items.all.count|default:1}}">{{object.order_id}}</td>
|
|
<td rowspan="{{object.items.all.count|default:1}}">{{object.bank_transaction_id}}</td>
|
|
<td rowspan="{{object.items.all.count|default:1}}">{{object.start_date}}</td>
|
|
<td rowspan="{{object.items.all.count|default:1}}">{{object.get_user_name}}</td>
|
|
<td rowspan="{{object.items.all.count|default:1}}">{{object.amount}} €</td>
|
|
{% for item in object.items.all %}
|
|
{% if not forloop.first %}<tr>{% endif %}
|
|
<td style="font-size: smaller">{{item.subject}}</td> <td style="font-size: smaller" class="price">{{item.amount}} €</td></tr>
|
|
{% endfor %}
|
|
{% if not object.items.all %}</tr>{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% include "gadjo/pagination.html" %}
|
|
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% if query %}
|
|
{% blocktrans %}
|
|
No transactions found matching "{{query}}".
|
|
{% endblocktrans %}
|
|
{% else %}
|
|
{% blocktrans %}
|
|
This site doesn't have any transaction yet.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|