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

'create new instance' screen improvements

This commit is contained in:
cserma 2023-05-11 17:32:42 +03:00 committed by catborise
parent 5880b91c7a
commit 2941840f0d

View file

@ -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 %}