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.
 
 
 
 

56 lines
2.2 KiB

{% extends "base.html" %}
{% block title %}Расчётные счета{% endblock %}
{% block content %}
<h2>Расчётные счета</h2>
<div>
<a id="account_add_link" class="account add-link" href="{% url 'customer_bank_accounts_add' %}">
Добавить расчётный счёт
</a>
</div>
{% if page %}
<table id="accounts" class="list">
<tr>
<th style="width: 25%">Расчётный счёт</th>
<th style="width: 47%">Наименование банка</th>
<th style="width: 10%">БИК</th>
<th style="width: 10%; text-align: center">Редактировать</th>
<th style="width: 8%; text-align: center">Удалить</th>
</tr>
{% for obj in page.object_list %}
<tr class="{% cycle 'even' 'odd' %}">
<td>
<a class="account edit-link" href="{% url 'customer_bank_accounts_edit' obj.pk %}">
{{ obj.account }}
</a>
{% if obj.is_main %}<span class="main">Основной счёт</span>{% endif %}
</td>
<td>{{ obj.name }}</td>
<td>{{ obj.bik }}</td>
<td class="center">
<a class="account edit-link" href="{% url 'customer_bank_accounts_edit' obj.pk %}">
<img src="{{ STATIC_URL }}img/icon-edit.gif" alt="Редактировать" title="Редактировать счёт" />
</a>
</td>
<td class="center">
<a id="account_delete_link" class="account delete-link" href="{% url 'customer_bank_accounts_delete' obj.pk %}">
<img src="{{ STATIC_URL }}img/icon-delete.gif" alt="[X]" title="Удалить счёт" />
</a>
</td>
</tr>
{% endfor %}
</table>
{% include 'paginator.html' with url_list='customer_bank_accounts_list' %}
{% endif %}
{% endblock %}
{% block js %}
<script src="{{ STATIC_URL }}js/paginator.js"></script>
<script src="{{ STATIC_URL }}js/customer/profile.edit.js"></script>
{% endblock %}