Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / admin-interface / templates / admin-interface / _vm_actions.html @ c204fcff

History | View | Annotate | Download (1.1 kB)

1
<div class="vm-suspend-form vm-action {% if vm.suspended %}inactive{% endif %}">
2
{% if vm.suspended %}
3
<form method="post" action="{% url admin-interface-suspend-vm-release vm_id=vm.pk %}">
4
  <input type="hidden" name="token" value="{{ token }}" />
5
  <input type="submit" value="RELEASE SUSPENSION" />
6
</form>
7
{% else %}
8
<form method="post" action="{% url admin-interface-suspend-vm vm_id=vm.pk %}">
9
  <input type="hidden" name="token" value="{{ token }}" />
10
  <input type="submit" value="SUSPEND" />
11
</form>
12
{% endif %}
13
</div>
14
<div class="vm-shutdown-form vm-action {% if vm.operstate == 'STOPPED' %}inactive{% endif %}">
15
{% if vm.operstate == 'STARTED' %}
16
<form method="post" action="{% url admin-interface-vm-shutdown vm_id=vm.pk %}">
17
  <input type="hidden" name="token" value="{{ token }}" />
18
  <input type="submit" value="SHUTDOWN" />
19
</form>
20
{% endif %}
21
{% if vm.operstate == 'STOPPED' %}
22
<form method="post" action="{% url admin-interface-vm-start vm_id=vm.pk %}">
23
  <input type="hidden" name="token" value="{{ token }}" />
24
  <input type="submit" value="START" />
25
</form>
26
{% endif %}
27
</div>