2017-07-24 08:16:47 -04:00
{% extends "base.html" %}
{% block styles %}
{{ super() }}
{% 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 >
2018-02-24 12:35:36 -05:00
{% include "admin/menu_deployments.html" %}
2018-03-15 19:14:48 -04:00
< button class = "btn btn-default" onclick = "window.location('{{ url_for('admin.addr2pool') }}')" > < span class = "glyphicon glyphicon-plus" aria-hiddent = "true" > < / span > Add IP to pool< / button >
2018-01-30 22:08:33 -05:00
< div class = "no-more-tables" >
2017-07-24 08:16:47 -04:00
< table class = "table table-hover table-striped table-condensed cf" >
< thead >
< tr >
2018-01-30 21:41:59 -05:00
<!-- <th>Region</th> -->
2017-07-24 08:16:47 -04:00
< th > IP< / th >
2018-01-30 21:41:59 -05:00
< th > Assignee< / th >
< th > Server< / th >
2018-01-24 18:08:57 -05:00
< th > VLAN< / th >
2018-01-25 12:48:50 -05:00
< th > Deploy< / th >
2018-01-24 18:08:57 -05:00
< th > rDNS< / 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 %}
2018-01-30 22:08:33 -05:00
<!-- <td data - title="Region">region1</td> -->
< td data-title = "IP" > {{ address.ip }}< / td >
2018-01-30 21:41:59 -05:00
{% if address.user_id != None %}
2018-01-30 22:08:33 -05:00
< td data-title = "Assignee" > < a href = "{{ url_for('admin.dashboard', user_pid=address.user_id) }}" > {{ address.owner.email }}< / a > < / td >
2018-01-30 21:41:59 -05:00
{% else %}
< td > < / td >
{% endif %}
2018-01-24 19:00:06 -05:00
{% if address.assignee != None %}
2018-01-30 22:08:33 -05:00
< td data-title = "Server" > {{ address.assignee.deploy.server.name }}< / td >
< td data-title = "VLAN" > {{ address.assignee.vlan_id }}< / td >
< td data-title = "Deploy" > {{ address.assignee.deploy.machine_alias }}< / td >
2018-01-30 21:41:59 -05:00
{% else %}
< td > < / td >
2018-01-24 19:00:06 -05:00
< td > < / td >
< td > < / td >
{% endif %}
2018-01-30 21:41:59 -05:00
2018-01-25 12:48:50 -05:00
{% if address.rdns != None %}
2018-01-30 22:08:33 -05:00
< td data-title = "rDNS" > {{ address.rdns }}< / td >
2018-01-25 12:48:50 -05:00
{% else %}
< td > < / td >
{% endif %}
2017-07-24 08:16:47 -04:00
{% endfor %}
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< / div >
< div class = "row" >
< / div >
< / div >
{% endblock %}