71 lines
1.7 KiB
HTML
71 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block page_content %}
|
|
<div class="row">
|
|
{% include "admin/admin_tasks.html" %}
|
|
|
|
<div class="col-md-12">
|
|
<div class="panel panel-info" id="addresses">
|
|
<div class="panel-heading">Addresses</div>
|
|
<div class="panel-body"><p>
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
<thead>
|
|
<tr>
|
|
<th>IP</th>
|
|
<th>VLAN</th>
|
|
<th>Deploy</th>
|
|
<th>Server</th>
|
|
<th>Region</th>
|
|
<th>rDNS</th>
|
|
<th>Assignee</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for address in addresses %}
|
|
<tr>
|
|
{% if address.reserved == True %}<tr class="danger">{% else %}<tr>{% endif %}
|
|
<td>{{ address.ip }}</td>
|
|
{% if address.assignee != None %}
|
|
<td>{{ address.assignee.vlan_id }}</td>
|
|
<td>{{ address.assignee.deploy.machine_alias }}</td>
|
|
<td>{{ address.assignee.deploy.server.name }}</td>
|
|
{% else %}
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
{% endif %}
|
|
<td>{{ address.region.name }}</td>
|
|
{% if address.rdns != None %}
|
|
<td>{{ address.rdns }}</td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
{% if address.user_id != None %}
|
|
<td><a href="{{ url_for('admin.dashboard', user_pid=address.user_id) }}">{{ address.owner.email }}</a></td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<button class="btn btn-default" onclick="window.open('{{ url_for('admin.addr2pool') }}')"><span class="glyphicon glyphicon-plus" aria-hiddent="true"></span> Add IP to pool</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|