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.
59 lines
2.2 KiB
59 lines
2.2 KiB
{% extends 'base.html' %}
|
|
{% block main %}
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
<li><a href="{% url 'ip_pool:home' %}">IP Пул</a></li>
|
|
<li class="active">Редактировать/Просмотреть</li>
|
|
</ol>
|
|
|
|
|
|
<h3>История абонента</h3>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th width="30">Id</th>
|
|
<th>Ip</th>
|
|
<th>Клиент</th>
|
|
<th width="50">Уд.</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for pi in pool_ips %}
|
|
<tr>
|
|
<td>{{ pi.id }}</td>
|
|
<td>{{ pi.ip }}</td>
|
|
<td>{% if pi.abon %}
|
|
<a href="{% url 'abonapp:abon_home' pi.abon.group.id pi.abon.id %}">{{ pi.abon.username }}</a>
|
|
{% else %}---{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if pi.abon %}
|
|
<button class="btn btn-sm btn-danger disabled">
|
|
<span class="glyphicon glyphicon-remove-circle"></span>
|
|
</button>
|
|
{% elif perms.ip_pool.delete_ippoolitem %}
|
|
<a href="{% url 'ip_pool:del_ip' %}?id={{ pi.id }}" class="btn btn-sm btn-danger">
|
|
<span class="glyphicon glyphicon-remove-circle"></span>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="4">Нет ни одного пула зарезервированных ip адресов.
|
|
{% if perms.ip_pool.add_ippoolitem %}
|
|
<a href="{% url 'ip_pool:add' %}">Создать</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{% include 'toolbar_page.html' with pag=pool_ips %}
|
|
|
|
{% endblock %}
|