proxadmin/app/templates/admin/list_items.html

147 lines
3.8 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>
<th>Period</th>
2017-06-25 10:11:52 -04:00
<th>Last Charged</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-06-28 10:42:21 -04:00
{% if deploy.enabled == False %}<tr class="danger">{% else %}<tr>{% endif %}
<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>
<td>{{ deploy.period }}</td>
2017-06-25 10:11:52 -04:00
<td>{{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})</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-28 10:42:21 -04:00
<th>Period</th>
2017-06-25 10:11:52 -04:00
<th>Last Charged</th>
2017-06-10 23:26:10 -04:00
</tr>
</thead>
<tbody>
{% for service in services %}
2017-06-28 10:42:21 -04:00
{% if service.enabled == False %}<tr class="danger">{% else %}<tr>{% endif %}
<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>
2017-06-28 10:42:21 -04:00
<td>{{ service.period }}</td>
2017-06-25 10:11:52 -04:00
<td>{{ moment(service.date_last_charge).format('ll') }} ({{ moment(service.date_last_charge).fromNow() }})</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>
</tr>
2017-06-10 23:26:10 -04:00
</thead>
2017-06-06 09:49:32 -04:00
<tbody>
{% for domain in domains %}
2017-06-28 10:42:21 -04:00
{% if domain.enabled == False %}<tr class="danger">{% else %}<tr>{% endif %}
<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>
</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 %}