You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.1 KiB
53 lines
2.1 KiB
{% extends request.is_ajax|yesno:'nullcont.htm,abonapp/ext.htm' %}
|
|
{% load i18n %}
|
|
{% load guardian_tags %}
|
|
{% block content %}
|
|
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans 'Sub' %}</th>
|
|
<th>{% trans 'Sum' %}</th>
|
|
<th>{% trans 'Date of payment' %}</th>
|
|
<th>{% trans 'Author of payment' %}</th>
|
|
<th>{% trans 'Comment' %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ph in pay_history %}
|
|
<tr>
|
|
<td><a href="{% url 'abonapp:abon_home' abon_group.pk abon.pk %}">{{ ph.abon.username }}</a></td>
|
|
<td>{{ ph.amount }}</td>
|
|
<td>{{ ph.date|date:'d F Y, H:i:s' }}</td>
|
|
<td><a target="_blank" href="{% url 'acc_app:other_profile' ph.author.pk %}">{{ ph.author.username }}</a></td>
|
|
<td>{{ ph.comment }}</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="5">{% trans 'Payment history is empty' %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5" class="btn-group btn-group-sm">
|
|
{% if perms.abonapp.can_add_ballance %}
|
|
<a href="{% url 'abonapp:abon_amount' abon_group.pk abon.pk %}" class="btn btn-default btn-modal">
|
|
<span class="glyphicon glyphicon-credit-card"></span> {% trans 'Fill account' %}
|
|
</a>
|
|
{% else %}
|
|
<a href="#" class="btn btn-default" title="{% trans 'Permission denied' %}" disabled>
|
|
<span class="glyphicon glyphicon-credit-card"></span> {% trans 'Fill account' %}
|
|
</a>
|
|
{% endif %}
|
|
<a href="{% url 'abonapp:abon_debts' abon_group.pk abon.pk %}" class="btn btn-default">
|
|
<span class="glyphicon glyphicon-gbp"></span> {% trans 'Debts' %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
{% include 'toolbar_page.html' with pag=pay_history %}
|
|
{% endblock %}
|