console/SWSCloudCore/templates/administrator/containers/index.html

42 lines
1.4 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% block title %}Containers{% endblock %}
{% block subtitle %}Containers list{% endblock %}
{% block content %}
Total: {{ containers.total }}
<table class="table table-bordered">
<thead>
<tr>
<th>Id</th>
<th>Datacenter</th>
<th>Server</th>
<th>User</th>
<th>IPv4</th>
<th>IPv6</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% if containers.total == 0 %}
<tr>
<td colspan="6">Нет ни одного правила</td>
</tr>
{% else %}
{% for container in containers['items'] %}
<tr>
<td>{{ container.id }}</td>
<td>{{ container.datacenter.name }}</td>
<td>{{ container.server.hostname }}</td>
<td>{{ container.user.email }}</td>
<td>{{ container.ipv4 }}</td>
<td>{{ container.ipv6 }}</td>
<td>{{ container.status }}</td>
<td><a href="#">Edit</a></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endblock %}