proxstar/templates/get_vms.html
2017-11-26 12:01:30 -05:00

46 lines
785 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<a href="/proxstar/create">Create VM</a>
<br><br>
<table>
<tr>
<th> Name </th>
<th> Status </th>
<th> Cores </th>
<th> Memory </th>
<th> Disk Size </th>
<th> Delete </th>
</tr>
{% for vm in vms %}
<tr>
<td> {{ vm['name'] }} </td>
<td> {{ vm['status'] }} </td>
<td> {{ vm['config']['cores'] * vm['config'].get(sockets, 1) }} </td>
<td> {{ vm['config']['memory'] }} MB </td>
<td> {{ vm['disk_size'] }} </td>
<td>
<form action="/proxstar/delete" method="post">
<button type="submit" name="delete" value="{{ vm['vmid'] }}">DELETE</button>
</form>
</td>
</tr>
{% endfor %}
</table>
<br>
{{ vms }}
</body>
</html>