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.
62 lines
2.2 KiB
62 lines
2.2 KiB
{% extends 'base.html' %}
|
|
{% block main %}
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
<li class="active">IP Пул</li>
|
|
</ol>
|
|
|
|
{% include 'message_block.html' %}
|
|
|
|
<h3>Пулы ip адресов</h3>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Начальный IP</th>
|
|
<th>Конечный IP</th>
|
|
<th>Количество</th>
|
|
<th width="50">Ред.</th>
|
|
<th width="50">Уд.</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for pl in pools %}
|
|
<tr>
|
|
<td>{{ pl.0 }}</td>
|
|
<td>{{ pl.1 }}</td>
|
|
<td>{{ pl.2 }}</td>
|
|
<td colspan="2" class="btn-group">
|
|
<a href="{% url 'ip_pool:ips' %}?ips={{ pl.0 }}&ipe={{ pl.1 }}"
|
|
class="btn btn-sm btn-primary">
|
|
<span class="glyphicon glyphicon-edit"></span>
|
|
</a>
|
|
<a href="{% url 'ip_pool:ips_del' %}?ips={{ pl.0 }}&ipe={{ pl.1 }}"
|
|
class="btn btn-sm btn-danger">
|
|
<span class="glyphicon glyphicon-remove-circle"></span>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="5">Нет ни одного пула зарезервированных ip адресов. <a
|
|
href="{% url 'ip_pool:add' %}">Создать</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5">
|
|
<a href="{% url 'ip_pool:add' %}" class="btn btn-sm btn-success">
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
{% include 'toolbar_page.html' with pag=pools %}
|
|
|
|
{% endblock %}
|