diff --git a/templates/instance.html b/templates/instance.html index 1da1900..8dd0e58 100644 --- a/templates/instance.html +++ b/templates/instance.html @@ -34,6 +34,7 @@ +
@@ -90,8 +91,8 @@
-

Take Snapshots

+ {% ifequal status 5 %} +

{% trans "This may take more than an hour, depending on how much content is on your droplet and how large the disk is." %}

+
{% csrf_token %} +
+
+ +
+
+ {% ifequal status 5 %} + + {% else %} + + {% endifequal %} +
+
+ {% else %} +

{% trans "To take a snapshot please Power Off the instance." %}

+ {% endifequal %}
-

Restore Snapshots

+ {% ifequal status 5 %} + {% if snapshots %} + + + + + + + + + + {% 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 %} + + +
+
+ {% else %} +

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

+ {% endif %} + {% else %} +

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

+ {% endifequal %}
@@ -274,4 +364,11 @@
+{% endblock %} +{% block script %} + {% endblock %} \ No newline at end of file