root / snf-cyclades-app / synnefo / admin-interface / templates / admin-interface / _vm_actions.html @ c204fcff
History | View | Annotate | Download (1.1 kB)
1 | c204fcff | Alex Pyrgiotis | <div class="vm-suspend-form vm-action {% if vm.suspended %}inactive{% endif %}"> |
---|---|---|---|
2 | c204fcff | Alex Pyrgiotis | {% if vm.suspended %} |
3 | c204fcff | Alex Pyrgiotis | <form method="post" action="{% url admin-interface-suspend-vm-release vm_id=vm.pk %}"> |
4 | c204fcff | Alex Pyrgiotis | <input type="hidden" name="token" value="{{ token }}" /> |
5 | c204fcff | Alex Pyrgiotis | <input type="submit" value="RELEASE SUSPENSION" /> |
6 | c204fcff | Alex Pyrgiotis | </form>
|
7 | c204fcff | Alex Pyrgiotis | {% else %} |
8 | c204fcff | Alex Pyrgiotis | <form method="post" action="{% url admin-interface-suspend-vm vm_id=vm.pk %}"> |
9 | c204fcff | Alex Pyrgiotis | <input type="hidden" name="token" value="{{ token }}" /> |
10 | c204fcff | Alex Pyrgiotis | <input type="submit" value="SUSPEND" /> |
11 | c204fcff | Alex Pyrgiotis | </form>
|
12 | c204fcff | Alex Pyrgiotis | {% endif %} |
13 | c204fcff | Alex Pyrgiotis | </div>
|
14 | c204fcff | Alex Pyrgiotis | <div class="vm-shutdown-form vm-action {% if vm.operstate == 'STOPPED' %}inactive{% endif %}"> |
15 | c204fcff | Alex Pyrgiotis | {% if vm.operstate == 'STARTED' %} |
16 | c204fcff | Alex Pyrgiotis | <form method="post" action="{% url admin-interface-vm-shutdown vm_id=vm.pk %}"> |
17 | c204fcff | Alex Pyrgiotis | <input type="hidden" name="token" value="{{ token }}" /> |
18 | c204fcff | Alex Pyrgiotis | <input type="submit" value="SHUTDOWN" /> |
19 | c204fcff | Alex Pyrgiotis | </form>
|
20 | c204fcff | Alex Pyrgiotis | {% endif %} |
21 | c204fcff | Alex Pyrgiotis | {% if vm.operstate == 'STOPPED' %} |
22 | c204fcff | Alex Pyrgiotis | <form method="post" action="{% url admin-interface-vm-start vm_id=vm.pk %}"> |
23 | c204fcff | Alex Pyrgiotis | <input type="hidden" name="token" value="{{ token }}" /> |
24 | c204fcff | Alex Pyrgiotis | <input type="submit" value="START" /> |
25 | c204fcff | Alex Pyrgiotis | </form>
|
26 | c204fcff | Alex Pyrgiotis | {% endif %} |
27 | c204fcff | Alex Pyrgiotis | </div> |