1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

fix computes list table layout

This commit is contained in:
catborise 2020-07-23 13:57:10 +03:00
parent 6a8d713ae6
commit bb935b3713

View file

@ -25,26 +25,26 @@
<div class="col-lg-12">
<table class="table table-striped table-hover">
<thead>
<tr>
<th span="col">{% trans "Name" %}</th>
<th span="col">{% trans "Status" %}</th>
<th span="col">{% trans "Details" %}</th>
<th span="col">{% trans "Actions" %}</th>
<tr class="d-flex">
<th span="col" class="col-sm-3">{% trans "Name" %}</th>
<th span="col" class="col-sm-2">{% trans "Status" %}</th>
<th span="col" class="col-sm-5">{% trans "Details" %}</th>
<th span="col" class="col-sm-2 text-center">{% trans "Actions" %}</th>
</tr>
</thead>
<tbody class="searchable">
{% for compute in computes %}
<tr>
<td>
<tr class="d-flex">
<td class="col-sm-3">
{{ compute.name }}
</td>
<td>
<td class="col-sm-2">
{% if compute.status is True %}{% trans "Connected" %}{% else %}{% trans "Not Connected" %}{% endif %}
</td>
<td>
<td class="col-sm-5">
{{ compute.details|default:"" }}
</td>
<td>
<td class="col-sm-2">
<div class="float-right btn-group">
{% if compute.status is True %}
<a class="btn btn-success" title="{%trans "Overview" %}" href="{% url 'overview' compute.id %}">{% icon 'eye' %}</a>