{% extends "base.html" %} {% load staticfiles %} {% load i18n %} {% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %} {% block content %} {% include 'pleasewaitdialog.html' %}

{{ vname }}{% if title %} ({{ title }}){% endif %}

{% ifequal status 5 %} {% trans "Off" %} {% endifequal %} {% ifequal status 1 %} {% trans "Active" %} {% endifequal %} {% ifequal status 3 %} {% trans "Suspend" %} {% endifequal %} | {% if cur_vcpu %} {{ cur_vcpu }} {% trans "Vcpu" %} {% else %} {{ vcpu }} {% trans "Vcpu" %} {% endif %} | {{ cur_memory }} {% trans "MB" %} {% trans "Ram" %} | {% for disk in disks %} {{ disk.size|filesizeformat }} {% trans "Disk" %} | {% endfor %} on {{ compute.name }}{% if compute.name != compute.hostname %} - {{ compute.hostname }}{% endif %}
{% if user_quota_msg %} {{ user_quota_msg|capfirst }} quota reached. {% endif %}
{% include 'errors_block.html' %} {% include 'messages_block.html' %}
{% ifequal status 1 %}

{% trans "This action sends an ACPI shutdown signal to the instance." %}

{% csrf_token %}

{% trans "This action forcibly powers off and start the instance and may cause data corruption." %}

{% csrf_token %}

{% trans "This action forcibly powers off the instance and may cause data corruption." %}

{% csrf_token %}
{% if request.user.is_superuser %}

{% trans "This action suspends the instance." %}

{% csrf_token %}
{% endif %} {% endifequal %} {% ifequal status 3 %} {% if request.user.is_superuser %}

{% trans "This action restore the instance after suspend." %}

{% csrf_token %}
{% else %}

{% trans "Administrator blocked your instance." %}

{% csrf_token %}
{% endif %} {% endifequal %} {% ifequal status 5 %}

{% trans "Click on Boot button to start this instance." %}

{% csrf_token %} {% if instance.is_template %}

{% trans "Template instance cannot be started." %}

{% else %} {% endif %}
{% endifequal %}

{% trans "This action opens a new window with a VNC connection to the console of the instance." %}

{% ifequal status 1 %} {% else %} {% endifequal %}
{% if show_access_root_password %}

{% trans "You need shut down your instance and enter a new root password." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if show_access_ssh_keys %}

{% trans "You need shut down your instance and choose your public key." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% ifequal status 1 %}

{% trans "This action opens a remote viewer with a connection to the console of the instance." %}

{% endifequal %}
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% csrf_token %}

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

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

{% trans "Custom value" %}
{% trans "Custom value" %}

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

{% for disk in disks %}
{% endfor %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% if request.user.is_superuser or userinstance.is_change %}
{% csrf_token %}

{% trans "Volume parameters" %}

{% ifequal status 5 %} {% else %} {% endifequal %}
{% else %} {% trans "You don't have permission for resizing instance" %} {% endif %}
{% ifequal status 5 %}

{% trans "This may take more than an hour, depending on how much content is on your droplet and how large the disk is." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% else %}

{% trans "To take a snapshot please Power Off the instance." %}

{% endifequal %}
{% ifequal status 5 %} {% if snapshots %}

{% trans "Choose a snapshot for restore/delete" %}

{% for snap in snapshots %} {% endfor %}
{% trans "Name" %} {% trans "Date" %} {% trans "Action" %}
{{ snap.name }} {{ snap.date|date:"M d H:i:s" }}
{% csrf_token %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% csrf_token %}
{% else %}

{% trans "You do not have any snapshots" %}

{% endif %} {% else %}

{% trans "To restore snapshots you need Power Off the instance." %}

{% endifequal %}
{% for cd in media %}
{% csrf_token %}
{% if not cd.image %}
{% if media_iso %} {% else %} {% endif %}
{% else %}

{{ cd.image }}

{% endif %}
{% endfor %}
{% if request.user.is_superuser %}

{% trans "Autostart your instance when host server is power on" %}

{% csrf_token %} {% ifequal autostart 0 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser or userinstance.is_vnc %}

{% trans "To set console's type, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To set console listen address, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To create console password, shutdown the instance." %}

{% csrf_token %}
{% if console_passwd %} {% trans "Show" %} {% endif %} {% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To set console's keymap, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser %}

{% trans "Assign network device to bridge" %} {% include 'add_instance_network_block.html' %}

{% csrf_token %}

{% trans "Network devices" %}

{% for network in networks %}
{% endfor %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser or request.user.userattributes.can_clone_instances %}

{% trans "Create a clone" %}

{% csrf_token %}
{% if request.user.is_superuser %}
{% elif clone_instance_auto_name %}
{% else %}
{% endif %}
{% if request.user.is_superuser %}

{% trans "Network devices" %}

{% for network in networks %}
{% endfor %} {% else %} {% for network in networks %} {% endfor %} {% endif %} {% if request.user.is_superuser %}

{% trans "Storage devices" %}

{% for disk in disks %}
{% ifequal disk.format 'qcow2' %}
{% endifequal %}
{% endfor %} {% else %} {% for disk in disks %} {% endfor %} {% endif %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser %}

{% trans "For migration both host servers must have equal settings and OS type" %}

{% csrf_token %}

{{ compute.name }}

{% if computes_count != 1 %} {% else %} {% endif %}

{% trans "If you need to edit xml please Power Off the instance" %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser or request.user.userattributes.can_clone_instances %}
{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% endif %} {% if request.user.is_superuser %}

{% trans "Instance owners" %} {% include 'add_instance_owner_block.html' %}

{% for userinstance in userinstances %} {% endfor %}
{{ userinstance.user }}
{% csrf_token %}
{% endif %}

{% trans "CPU usage" %}

{% for net in networks %}

{% trans "Bandwidth device:" %} eth{{ forloop.counter0 }}

{% endfor %} {% for disk in disks %}

{% trans "Disk I/O device:" %} {{ disk.dev }}

{% endfor %}
{% trans "Date" %} {% trans "User" %} {% trans "Message" %}
None ...

{% trans "Delete storage for instance?" %}

{% if request.user.is_superuser or userinstance.is_delete %} {% ifequal status 3 %} {% else %}
{% csrf_token %}
{% endifequal %} {% else %} {% endif %}
{% endblock %} {% block script %} {% endblock %}