mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
'create new instance' screen improvements
This commit is contained in:
parent
5880b91c7a
commit
2941840f0d
1 changed files with 8 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
<form method="post" aria-label="Select compute for instance create form">
|
<form method="post" aria-label="Select compute for instance create form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<table class="table table-hover">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr style="cursor:default;pointer-events:none">
|
<tr style="cursor:default;pointer-events:none">
|
||||||
<th>{% trans "Name" %}</th>
|
<th>{% trans "Name" %}</th>
|
||||||
|
@ -23,12 +23,13 @@
|
||||||
<th>{% trans "Cpu Usage" %}</th>
|
<th>{% trans "Cpu Usage" %}</th>
|
||||||
<th>{% trans "Memory" %}</th>
|
<th>{% trans "Memory" %}</th>
|
||||||
<th>{% trans "Mem Usage" %}</th>
|
<th>{% trans "Mem Usage" %}</th>
|
||||||
|
<th>{% trans "Action" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for compute in computes %}
|
{% for compute in computes %}
|
||||||
{% if compute.status is True %}
|
{% if compute.status is True %}
|
||||||
<tr style="cursor:pointer" onclick="goto_compute('{{ compute.id }}')">
|
<tr style="text-decoration: none">
|
||||||
<td>{{ compute.name }}</td>
|
<td>{{ compute.name }}</td>
|
||||||
<td>{{ compute.cpu_count }}</td>
|
<td>{{ compute.cpu_count }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -46,6 +47,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="col-1">
|
||||||
|
<button class="btn btn-success btn-sm" type="button" onclick="goto_compute('{{ compute.id }}');">
|
||||||
|
{% trans "Choose" %}
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue