proxadmin/app/templates/admin/list_items.html

173 lines
4.2 KiB
HTML
Raw Normal View History

2017-06-06 09:49:32 -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-06-28 10:42:21 -04:00
<div class="panel panel-warning" id="deployments">
2017-06-06 09:49:32 -04:00
<div class="panel-heading">Deployments</div>
<div class="panel-body"><p>
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
2017-06-28 10:42:21 -04:00
<th>Owner</th>
2017-06-06 09:49:32 -04:00
<th>Cube ID</th>
<th>Alias</th>
<th>CPU</th>
<th>Mem</th>
<th>HDD</th>
2017-06-28 10:42:21 -04:00
<th>Price</th>
2017-06-25 10:11:52 -04:00
<th>Last Charged</th>
<th>Days Left</th>
2017-06-06 09:49:32 -04:00
</tr>
2017-06-10 23:26:10 -04:00
</thead>
2017-06-06 09:49:32 -04:00
<tbody>
{% for deploy in deployments %}
2017-07-13 10:32:24 -04:00
{% if deploy.enabled == False %}
<tr class="danger">
{% else %}
{% if deploy.warning == True %}
<tr class="warning">
{% else %}
<tr>
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
<td><a href="{{ url_for('admin.dashboard', user_pid=deploy.user_id) }}">{{ deploy.owner.email }}</a></td>
2017-06-26 10:39:31 -04:00
<td>{{ deploy.machine_id }}</td>
2017-06-06 09:49:32 -04:00
<td>{{ deploy.machine_alias }}</font></td>
2017-06-28 10:42:21 -04:00
<td>{{ deploy.machine_cpu }}</td>
2017-06-06 09:49:32 -04:00
<td>{{ deploy.machine_mem }} MB</td>
<td>{{ deploy.machine_hdd }} GB</td>
2017-06-28 10:42:21 -04:00
<td>{{ deploy.price }}</td>
2017-06-25 10:11:52 -04:00
<td>{{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})</td>
<td>{{ deploy.daysleft }}</td>
2017-06-06 09:49:32 -04:00
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
2017-06-10 23:26:10 -04:00
<div class="col-md-12">
2017-06-28 10:42:21 -04:00
<div class="panel panel-warning" id="services">
2017-06-10 23:26:10 -04:00
<div class="panel-heading">Services</div>
<div class="panel-body"><p>
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
2017-06-28 10:42:21 -04:00
<th>Owner</th>
2017-06-10 23:26:10 -04:00
<th>Category</th>
<th>Description</th>
<th>Price</th>
2017-06-25 10:11:52 -04:00
<th>Last Charged</th>
<th>Days Left</th>
2017-06-10 23:26:10 -04:00
</tr>
</thead>
<tbody>
{% for service in services %}
2017-07-13 10:32:24 -04:00
{% if service.enabled == False %}
<tr class="danger">
{% else %}
{% if service.warning == True %}
<tr class="warning">
{% else %}
<tr>
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
<td><a href="{{ url_for('admin.dashboard', user_pid=service.user_id) }}">{{ service.owner.email }}</a></td>
2017-06-10 23:26:10 -04:00
<td>{{ service.category }}</td>
<td>{{ service.description }}</td>
2017-06-25 10:11:52 -04:00
<td>{{ service.price }}</td>
<td>{{ moment(service.date_last_charge).format('ll') }} ({{ moment(service.date_last_charge).fromNow() }})</td>
<td>{{ service.daysleft }}</td>
2017-06-10 23:26:10 -04:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
2017-06-06 09:49:32 -04:00
<div class="col-md-12">
2017-06-28 10:42:21 -04:00
<div class="panel panel-warning" id="domains">
2017-06-06 09:49:32 -04:00
<div class="panel-heading">Domains</div>
<div class="panel-body"><p>
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
2017-06-28 10:42:21 -04:00
<th>Owner</th>
2017-06-06 09:49:32 -04:00
<th>Name</th>
<th>Expiry Date</th>
<th>Days Left</th>
2017-06-06 09:49:32 -04:00
</tr>
2017-06-10 23:26:10 -04:00
</thead>
2017-06-06 09:49:32 -04:00
<tbody>
{% for domain in domains %}
2017-07-13 10:32:24 -04:00
{% if domain.enabled == False %}
<tr class="danger">
{% else %}
{% if domain.warning == True %}
<tr class="warning">
{% else %}
<tr>
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
<td><a href="{{ url_for('admin.dashboard', user_pid=domain.user_id) }}">{{ domain.owner.email }}</a></td>
2017-06-06 09:49:32 -04:00
<td><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
<td>{{ domain.date_expire }}</td>
<td>{{ domain.daysleft }}</td>
2017-06-06 09:49:32 -04:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-12">
2017-06-28 10:42:21 -04:00
<div class="panel panel-warning" id="addresses">
2017-06-06 09:49:32 -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>
2017-06-28 10:42:21 -04:00
<th>Owner</th>
2017-06-06 09:49:32 -04:00
<th>IP</th>
<th>MAC Addr.</th>
2017-06-10 23:26:10 -04:00
<th>Reverse DNS</th>
2017-06-06 09:49:32 -04:00
</tr>
2017-06-10 23:26:10 -04:00
</thead>
2017-06-06 09:49:32 -04:00
<tbody>
{% for address in addresses %}
<tr>
2017-06-28 10:42:21 -04:00
{% if address.enabled == False %}<tr class="danger">{% else %}<tr>{% endif %}
<td><a href="{{ url_for('admin.dashboard', user_pid=address.user_id) }}">{{ address.owner.email }}</a></td>
2017-06-06 09:49:32 -04:00
<td>{{ address.ip }}</td>
2017-06-09 10:11:03 -04:00
<td>{{ address.mac }}</td>
2017-06-10 23:26:10 -04:00
<td>{{ address.rdns }}</td>
2017-06-06 09:49:32 -04:00
{% endfor %}
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
</div>
</div>
{% endblock %}