{% load i18n %} {% load bootstrap_icons %} {% load vm_states %} {% vm_actions instance as actions %} {% if actions %}
{% if "clone" in actions %} {% bs_icon 'copy' %} {% elif "poweron" in actions %}
{% csrf_token %}
{% elif "resume" in actions %}
{% csrf_token %}
{% else %} {% endif %} {% if "suspend" in actions %}
{% csrf_token %}
{% else %} {% endif %} {% if "poweroff" in actions %}
{% csrf_token %}
{% elif "force_off" in actions %}
{% csrf_token %}
{% else %} {% endif %} {% if "powercycle" in actions %}
{% csrf_token %}
{% else %} {% endif %} {% if "console" in actions %} {% else %} {% endif %}
{% endif %}