Hype/web/templates/backup.html

78 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2023-06-22 13:30:22 +00:00
{% include 'base.html' %}
{% block main %}
<div class="qard">
<div class="card">
<div class="card-header">
Containers
</div>
<div class="card-body">
<table class="table table-responsive table-hover table-condensed align-middle mb-0 bg-white">
<tr><th>Name</th><th>Snapshot list</th><th>Create Snapshot</th></tr>
{%for lxc in listlxc %}
<tr><td>{{ lxc[0] | safe }}</td><td><div class="snaplist">
{%for lxc_snap in lxc[1] %}
<table><tr><td>
{{ lxc_snap | safe }}
</td><td>
<form action="/del_snap_lxc" method="post">
<input type="hidden" name="cont" value="{{ lxc[0] | safe }}">
<button type="submit" name="delete" value="{{ lxc_snap | safe }}"><span class="fas fa-trash"></span></button>
</form>
</td><td>
<form action="/rest_snap_lxc" method="post">
<input type="hidden" name="cont" value="{{ lxc[0] | safe }}">
<button type="submit" name="restore" value="{{ lxc_snap | safe }}"><span class="fas fa-arrow-circle-down"></span></button>
</form>
</td></tr></table>
{%endfor%}
</div>
</td><td><form action="/snap_lxc" method="post"><button type="submit" value="{{ lxc[0] }}" name="nom" onclick="loading();" class="deliso"><span class="fas fa-play"> Save</button></form>
</td></tr>
{%endfor%}
</table>
</div></div></div>
<div class="qard">
<div class="card">
<div class="card-header">
Virtual Servers
</div>
<div class="card-body">
<table class="table table-responsive table-hover table-condensed align-middle mb-0 bg-white">
<tr><th>Name</th><th>Snapshot list</th><th>Create Snapshot</th></tr>
{%for vm in listvm %}
<tr><td>{{ vm[0] | safe }}</td><td><div class="snaplist">
{%for vm_snap in vm[1] %}
<table>
<tr>
<td>
{{ vm_snap | safe }}
</td>
<td>
<form action="/del_snap_vm" method="post">
<input type="hidden" name="cont" value="{{ vm[0] | safe }}">
<button type="submit" name="delete" value="{{ vm_snap | safe }}"><span class="fas fa-trash"></span></button>
</form>
</td>
<td>
<form action="/rest_snap_vm" method="post">
<input type="hidden" name="cont" value="{{ vm[0] | safe }}">
<button type="submit" name="restore" value="{{ vm_snap | safe }}"><span class="fas fa-arrow-circle-down"></span></button>
</form>
</td>
</tr>
</table>
{%endfor%}
</td><td><form action="/snap_vm" method="post"><button type="submit" value="{{ vm[0] }}" name="nom" onclick="loading();" class="deliso"><span class="fas fa-play"> Save</button></form>
</td></tr>
{%endfor%}
</table>
</div></div></div>
{% endblock %}
{% include 'foot.html' %}