Статус автозапуска VM был добавлен на дашборд
Этот коммит содержится в:
@@ -82,7 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<table class="vm-table">
|
<table class="vm-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th>ID</th><th>Name</th><th>IP</th><th>State</th><th>Actions</th></tr>
|
<tr><th>ID</th><th>Name</th><th>IP</th><th>State</th><th>Autostart</th><th>Actions</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for vm in vms %}
|
{% for vm in vms %}
|
||||||
@@ -92,6 +92,14 @@
|
|||||||
<td class="strong"><a class="table-link" href="/vm/{{ vm.name }}">{{ vm.name }}</a></td>
|
<td class="strong"><a class="table-link" href="/vm/{{ vm.name }}">{{ vm.name }}</a></td>
|
||||||
<td class="strong">{{ vm.ip|default('—') }}</td>
|
<td class="strong">{{ vm.ip|default('—') }}</td>
|
||||||
<td><span class="status {{ 'ok' if is_running else 'err' if 'shut' in vm.state else 'warn' }}">{{ vm.state }}</span></td>
|
<td><span class="status {{ 'ok' if is_running else 'err' if 'shut' in vm.state else 'warn' }}">{{ vm.state }}</span></td>
|
||||||
|
<td class="autostart-cell">
|
||||||
|
<span class="status {{ vm.autostart_css|default('warn') }}">{{ vm.autostart_label|default('unknown') }}</span>
|
||||||
|
{% if vm.autostart_enabled %}
|
||||||
|
<form method="post" action="/vm/{{ vm.name }}/autostart-disable" class="inline-form"><button class="mini-action" title="Отключить автозапуск">off</button></form>
|
||||||
|
{% else %}
|
||||||
|
<form method="post" action="/vm/{{ vm.name }}/autostart" class="inline-form"><button class="mini-action success" title="Включить автозапуск">on</button></form>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td class="vm-actions-cell">
|
<td class="vm-actions-cell">
|
||||||
<div class="vm-actions compact-actions">
|
<div class="vm-actions compact-actions">
|
||||||
<a class="icon-action" href="/vm/{{ vm.name }}" title="Подробнее"><span>ℹ</span><em>Детали</em></a>
|
<a class="icon-action" href="/vm/{{ vm.name }}" title="Подробнее"><span>ℹ</span><em>Детали</em></a>
|
||||||
@@ -108,7 +116,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr><td colspan="5" class="muted">Виртуальных машин пока нет</td></tr>
|
<tr><td colspan="6" class="muted">Виртуальных машин пока нет</td></tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user