From 0c8a0523a87cf056b94450a688c51f683fdd11e8 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 17 Jan 2020 16:14:28 +0300 Subject: [PATCH] show snapshot list while instance is running. User wanto to see list of running snapshot and delete it. --- instances/templates/instance.html | 89 +++++++++++++++---------------- 1 file changed, 43 insertions(+), 46 deletions(-) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index f7d19cc..968d307 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -549,54 +549,51 @@ {% endifequal %}
- {% ifequal status 5 %} - {% if snapshots %} -

{% trans "Choose a snapshot for restore/delete" %}

-
- - - - - - - - {% for snap in snapshots %} - - - - - + + + {% endfor %} + +
{% trans "Name" %}{% trans "Date" %}{% trans "Action" %}
{{ snap.name }}{{ snap.date|date:"M d H:i:s" }} -
{% csrf_token %} - - {% ifequal status 5 %} - - {% else %} - - {% endifequal %} -
-
-
{% csrf_token %} - - + {% endifequal %} + +
+
{% csrf_token %} + + +
+
+
{% else %} -

{% trans "To restore snapshots you need Power Off the instance." %}

- {% endifequal %} +

{% trans "You do not have any snapshots" %}

+ {% endif %}