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.
 
 
 
 
 

60 lines
1.9 KiB

{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% trans 'People with debts' %}{% endblock %}
{% block breadcrumb %}
<ol class="breadcrumb">
<li><span class="glyphicon glyphicon-home"></span></li>
<li><a href="{% url 'abonapp:group_list' %}">{% trans 'User groups' %}</a></li>
<li class="active">{% trans 'Debtors' %}</li>
</ol>
{% endblock %}
{% block page-header %}
{% trans 'People with debts' %}
{% endblock %}
{% block main %}
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th width="15">#</th>
<th>{% trans 'Sub' %}</th>
<th>{% trans 'Sum of pay' %}</th>
<th>{% trans 'Comment' %}</th>
<th>{% trans 'Date of make' %}</th>
<th>{% trans 'Author' %}</th>
</tr>
</thead>
<tbody>
{% for invoice in invoices %}
<tr>
<td>{{ invoice.id }}</td>
<td>
<a href="{% url 'abonapp:abon_home' invoice.abon.group.id invoice.abon.username %}">
{{ invoice.abon.username }}
</a>
</td>
<td>{{ invoice.amount }}</td>
<td>{{ invoice.comment }}</td>
<td>{{ invoice.date_create|date:'d b H:i' }}</td>
<td>
<a href="{% url 'acc_app:other_profile' invoice.author.id %}">
{{ invoice.author.username }}
</a>
</td>
</tr>
{% empty %}
<tr>
<td colspan="7">
{% trans 'Debts not found' %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}