1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

bugfix: instances list block poweron when is_template for normal users

This commit is contained in:
Jan Krcmar 2016-03-23 12:44:24 +01:00
parent 7cdac17b53
commit 738993d97a

View file

@ -166,7 +166,7 @@
<input type="hidden" name="name" value="{{ vm.name }}"/>
<input type="hidden" name="compute_id" value="{{ vm.compute_id }}"/>
{% ifequal vm.status 5 %}
<button class="btn btn-sm btn-default {% if info.is_template %}disabled{% endif %}" type="submit" name="poweron" title="Power On">
<button class="btn btn-sm btn-default {% if inst.instance.is_template %}disabled{% endif %}" type="submit" name="poweron" title="Power On">
<span class="glyphicon glyphicon-play"></span>
</button>
<button class="btn btn-sm btn-default disabled" title="{% trans "Power Off" %}">