proxadmin/app/templates/admin/list_addresses.html

72 lines
1.7 KiB
HTML
Raw Normal View History

2017-07-24 08:16:47 -04:00
{% extends "base.html" %}
{% block styles %}
{{ super() }}
</style>
{% endblock %}
{% block page_content %}
<div class="row">
{% include "admin/admin_tasks.html" %}
<div class="col-md-12">
2017-07-25 10:33:23 -04:00
<div class="panel panel-info" id="addresses">
2017-07-24 08:16:47 -04:00
<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>
2018-01-24 18:08:57 -05:00
<th>VLAN</th>
2018-01-25 12:48:50 -05:00
<th>Deploy</th>
<th>Server</th>
2017-12-14 18:00:02 -05:00
<th>Region</th>
2018-01-24 18:08:57 -05:00
<th>rDNS</th>
2018-01-29 11:29:35 -05:00
<th>Assignee</th>
2017-07-24 08:16:47 -04:00
</tr>
</thead>
<tbody>
{% for address in addresses %}
<tr>
2018-01-25 12:48:50 -05:00
{% if address.reserved == True %}<tr class="danger">{% else %}<tr>{% endif %}
2017-07-24 08:16:47 -04:00
<td>{{ address.ip }}</td>
2018-01-24 19:00:06 -05:00
{% if address.assignee != None %}
2018-01-25 12:48:50 -05:00
<td>{{ address.assignee.vlan_id }}</td>
<td>{{ address.assignee.deploy.machine_alias }}</td>
<td>{{ address.assignee.deploy.server.name }}</td>
2018-01-24 19:00:06 -05:00
{% else %}
2018-01-25 12:48:50 -05:00
<td></td>
2018-01-24 19:00:06 -05:00
<td></td>
<td></td>
{% endif %}
2017-12-14 18:00:02 -05:00
<td>{{ address.region.name }}</td>
2018-01-25 12:48:50 -05:00
{% if address.rdns != None %}
2018-01-24 18:08:57 -05:00
<td>{{ address.rdns }}</td>
2018-01-25 12:48:50 -05:00
{% else %}
<td></td>
{% endif %}
2018-01-29 11:29:35 -05:00
{% 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 %}
2017-07-24 08:16:47 -04:00
{% 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 %}