{% load i18n %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %} {% if instance.status == 5 or not instance.vcpus %}
{% csrf_token %}

{% trans "Logical host CPUs" %} : {{ vcpu_host }}

{% if instance.status == 5 %} {% else %} {% endif %}
{% else %}

{% trans "Logical Instance Active/Maximum CPUs" %} : {{ instance.cur_vcpu }} / {{ instance.vcpu }}

{% for id, vcpu in instance.vcpus.items %}
{% csrf_token %}
{% if vcpu.enabled == 'yes' and vcpu.hotpluggable == "yes" %} {% elif vcpu.enabled == 'yes' and vcpu.hotpluggable == "no" %} {% else %} {% endif %}
{% endfor %}
{% endif %} {% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% csrf_token %}

{% trans "Total host memory" %}: {{ memory_host|filesizeformat }}

{% trans "Custom value" %}
{% trans "Custom value" %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% csrf_token %}

{% trans "Disk allocation (GB)" %}:

{% for disk in instance.disks %}
{% if disk.storage is None %}
{% trans "Error getting disk info" %}
{% else %}
{% endif %}
{% endfor %} {% if instance.status == 5 %} {% else %} {% endif %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}