From b18290794efc1330d2dd780b50b1e232a44f93aa Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 31 Jul 2019 11:03:48 +0300 Subject: [PATCH] Translate, indentation and typo fixes --- accounts/templates/account.html | 250 +- accounts/templates/accounts-list.html | 10 +- computes/templates/computes.html | 481 ++- computes/templates/overview.html | 188 +- create/templates/create_flav_block.html | 4 - create/templates/create_instance.html | 8 +- instances/templates/add_instance_volume.html | 222 +- instances/templates/allinstances.html | 264 +- .../templates/allinstances_index_grouped.html | 2 +- .../allinstances_index_nongrouped.html | 10 +- instances/templates/instance.html | 2575 ++++++++--------- instances/templates/instances.html | 289 +- interfaces/templates/interface.html | 130 +- interfaces/templates/interfaces.html | 120 +- logs/templates/paging.html | 2 +- logs/templates/showlogs.html | 90 +- networks/templates/modify_fixed_address.html | 1 - networks/templates/network.html | 402 +-- networks/templates/networks.html | 118 +- nwfilters/templates/add_nwf_rule.html | 6 +- nwfilters/templates/nwfilters.html | 280 +- secrets/templates/secrets.html | 222 +- storages/templates/storage.html | 370 +-- 23 files changed, 3013 insertions(+), 3031 deletions(-) diff --git a/accounts/templates/account.html b/accounts/templates/account.html index 0c5068d..56f91b8 100644 --- a/accounts/templates/account.html +++ b/accounts/templates/account.html @@ -2,139 +2,139 @@ {% load i18n %} {% block title %}{% trans "User" %} - {{ user }}{% endblock %} {% block content %} - -
-
- {% include 'create_user_inst_block.html' %} -

{{ user }}

-
+ +
+
+ {% include 'create_user_inst_block.html' %} +

{{ user }}

+
+
+ + + {% include 'errors_block.html' %} + + {% if request.user.is_superuser and publickeys %} +
+
+
+ + + + + + + + + {% for publickey in publickeys %} + + + + + {% endfor %} + +
{% trans "Key name" %}{% trans "Public key" %}
{{ publickey.keyname }}{{ publickey.keypublic|truncatechars:64 }}
- +
+
+ {% endif %} - {% include 'errors_block.html' %} - - {% if request.user.is_superuser and publickeys %} -
+
+
+ {% if not user_insts %}
-
- - - - - - - - - {% for publickey in publickeys %} - - - - - {% endfor %} - -
{% trans "Key name" %}{% trans "Public key" %}
{{ publickey.keyname }}{{ publickey.keypublic|truncatechars:64 }}
+
+ + {% trans "Warning:" %} {% trans "User doesn't have any Instace" %}
-
- {% endif %} - -
-
- {% if not user_insts %} -
-
- - {% trans "Warning:" %} {% trans "User doesn't have any Instace" %} -
-
- {% else %} -
- - - - - - - - - - - - - {% for inst in user_insts %} - - - - - - - + + + {% endfor %} + +
#{% trans "Instance" %}{% trans "VNC" %}{% trans "Resize" %}{% trans "Delete" %}{% trans "Action" %}
{{ forloop.counter }}{{ inst.instance.name }}{{ inst.is_vnc }}{{ inst.is_change }}{{ inst.is_delete }} - - - + {% else %} +
+ + + + + + + + + + + + + {% for inst in user_insts %} + + + + + + + - - - {% endfor %} - -
#{% trans "Instance" %}{% trans "VNC" %}{% trans "Resize" %}{% trans "Delete" %}{% trans "Action" %}
{{ forloop.counter }}{{ inst.instance.name }}{{ inst.is_vnc }}{{ inst.is_change }}{{ inst.is_delete }} + + + - - -
{% csrf_token %} - - -
-
-
- {% endif %} + + + + + + +
+
{% csrf_token %} + + +
+
-
+ {% endif %} +
+
{% endblock %} diff --git a/accounts/templates/accounts-list.html b/accounts/templates/accounts-list.html index f5a6013..d6630cc 100644 --- a/accounts/templates/accounts-list.html +++ b/accounts/templates/accounts-list.html @@ -30,11 +30,11 @@ - - - - - + + + + + diff --git a/computes/templates/computes.html b/computes/templates/computes.html index 6233122..a03b937 100644 --- a/computes/templates/computes.html +++ b/computes/templates/computes.html @@ -2,251 +2,250 @@ {% load i18n %} {% block title %}{% trans "Computes" %}{% endblock %} {% block content %} - -
-
- {% include 'create_comp_block.html' %} -

{% trans "Computes" %}

-
-
- + +
+
+ {% include 'create_comp_block.html' %} +

{% trans "Computes" %}

+
+
+ - {% include 'errors_block.html' %} + {% include 'errors_block.html' %} -
- {% if computes_info %} - {% for compute in computes_info %} -
-
-
- {% ifequal compute.status 1 %} -

- {{ compute.name }} - - - -

- {% else %} -

{{ compute.name }} - - - -

- {% endifequal %} +
+ {% if computes_info %} + {% for compute in computes_info %} +
+
+
+ {% ifequal compute.status 1 %} +

+ {{ compute.name }} + + + +

+ {% else %} +

{{ compute.name }} + + + +

+ {% endifequal %} +
+
+
+
+

{% trans "Status" %}:

-
-
-
-

{% trans "Status:" %}

-
-
- {% if compute.status %} -

{% trans "Connected" %}

- {% else %} -

{% trans "Not Connected" %}

- {% endif %} - {% if compute.details %} -

{% trans compute.details %}

- {% else %} -

{% trans "No details available" %}

- {% endif %} -
-
- - - - +
+ {% if compute.status %} +

{% trans "Connected" %}

+ {% else %} +

{% trans "Not Connected" %}

+ {% endif %} + {% if compute.details %} +

{% trans compute.details %}

+ {% else %} +

{% trans "No details available" %}

+ {% endif %}
+ + +
- {% endfor %} - {% else %} -
-
- - {% trans "Warning:" %} {% trans "Hypervisor doesn't have any Computes" %} -
-
- {% endif %} -
+
+
+ {% endfor %} + {% else %} +
+
+ + {% trans "Warning" %}: {% trans "Hypervisor doesn't have any Computes" %} +
+
+ {% endif %} +
{% endblock %} diff --git a/computes/templates/overview.html b/computes/templates/overview.html index 9418b20..81398b9 100644 --- a/computes/templates/overview.html +++ b/computes/templates/overview.html @@ -3,107 +3,107 @@ {% load staticfiles %} {% block title %}{% trans "Overview" %} - {{ compute.name }}{% endblock %} {% block content %} - -
-
-

{{ compute.name }}

- -
-
- + +
+
+

{{ compute.name }}

+ +
+
+ - {% include 'errors_block.html' %} + {% include 'errors_block.html' %} -
- -
-

{% trans "Hostname" %}

-

{% trans "Hypervisors" %}

-

{% trans "Emulator" %}

-

{% trans "Version" %}

-

{% trans "Memory" %}

-

{% trans "Architecture" %}

-

{% trans "Logical CPUs" %}

-

{% trans "Processor" %}

-

{% trans "Connection" %}

-

{% trans "Details" %}

+
+ +
+

{% trans "Hostname" %}

+

{% trans "Hypervisors" %}

+

{% trans "Emulator" %}

+

{% trans "Version" %}

+

{% trans "Memory" %}

+

{% trans "Architecture" %}

+

{% trans "Logical CPUs" %}

+

{% trans "Processor" %}

+

{% trans "Connection" %}

+

{% trans "Details" %}

+
+
+

{{ hostname }}

+

{% for arch, hpv in hypervisor.items %} + + {{ arch }} + {% for h in hpv %} + {{ h }} + {% endfor %} + {% endfor %} +

+

{{ emulator }}

+

+ Qemu + {{ version }}   + Libvirt + {{ lib_version }}   +

+

{{ host_memory|filesizeformat }}

+

{{ host_arch }}

+

{{ logical_cpu }}

+

{{ model_cpu }}

+

{{ uri_conn }}

+

{{ compute.details }}

+
+
+
+
+ +
+
+

{% trans "CPU Utilization" %}

-
-

{{ hostname }}

-

{% for arch, hpv in hypervisor.items %} - - {{ arch }} - {% for h in hpv %} - {{ h }} - {% endfor %} - {% endfor %} -

-

{{ emulator }}

-

- {% trans 'Qemu' %} - {{ version }}   - {% trans 'Libvirt' %} - {{ lib_version }}   -

-

{{ host_memory|filesizeformat }}

-

{{ host_arch }}

-

{{ logical_cpu }}

-

{{ model_cpu }}

-

{{ uri_conn }}

-

{{ compute.details }}

-
-
-
-
- -
-
-

{% trans "CPU Utilization" %}

-
-
-
-
- -
-
-
-
-
-
-

{% trans "RAM Utilization" %}

-
-
-
-
- -
-
+
+
+
+
+
+
+

{% trans "RAM Utilization" %}

+
+
+
+
+ +
+
+
+
+
+
{% endblock %} {% block script %} diff --git a/create/templates/create_flav_block.html b/create/templates/create_flav_block.html index 979599f..26df5ca 100644 --- a/create/templates/create_flav_block.html +++ b/create/templates/create_flav_block.html @@ -17,7 +17,6 @@
{% csrf_token %}
-
@@ -25,7 +24,6 @@
-
@@ -33,7 +31,6 @@
-
@@ -42,7 +39,6 @@
-
diff --git a/create/templates/create_instance.html b/create/templates/create_instance.html index fb0a6f1..6580cd5 100644 --- a/create/templates/create_instance.html +++ b/create/templates/create_instance.html @@ -224,7 +224,7 @@ {% endif %}
- +
@@ -436,7 +436,6 @@
-
@@ -582,8 +581,7 @@
-
- +
{% endblock %} @@ -607,7 +605,6 @@ } $(document).ready(function () { - $('#image-control').multiselect({ disableIfEmpty: true, enableCaseInsensitiveFiltering: true, @@ -716,7 +713,6 @@ function get_disk_bus_choices(compute_id, dev_idx, disk_type){ get_diskBus_url = "/computes/" + compute_id + "/disk/" + disk_type + "/buses"; - $.getJSON(get_diskBus_url, function (data) { $("#bus" + dev_idx).find('option').remove(); $.each(data['bus'], function(i, item) { diff --git a/instances/templates/add_instance_volume.html b/instances/templates/add_instance_volume.html index 9ae808a..ba2f978 100644 --- a/instances/templates/add_instance_volume.html +++ b/instances/templates/add_instance_volume.html @@ -1,121 +1,62 @@ {% load i18n %} {% if request.user.is_superuser %} - - - + + + - -
UsernameStatusStaffSuperuserClone{% trans "Username" %}{% trans "Status" %}{% trans "Staff" %}{% trans "Superuser" %}{% trans "Clone" %}
- - - - - - - - - - - {% for inst, vm in all_user_vms.items %} - - - - - - - - {% endfor %} - -
{% trans 'Name' %}{% trans 'Status' %}{% trans 'VCPU' %}{% trans 'Memory' %}{% trans 'Actions' %}
{{ vm.name }}
{{ vm.title }}
{% ifequal vm.status 1 %} - {% trans "Active" %} - {% endifequal %} - {% ifequal vm.status 5 %} - {% trans "Off" %} - {% endifequal %} - {% ifequal vm.status 3 %} - {% trans "Suspend" %} - {% endifequal %} - {{ vm.vcpu }}{{ vm.memory }} {% trans "MB" %}
{% csrf_token %} - - - {% ifequal vm.status 5 %} - {% if inst.instance.is_template %} - - {% else %} - - {% endif %} - - - - {% endifequal %} - {% ifequal vm.status 3 %} - - - - - {% endifequal %} - {% ifequal vm.status 1 %} - - - - - - - {% endifequal %} -
-
- {% endif %} - {% endif %}
-
-
+ {% else %} + {% ifequal view_style "nongrouped" %} + {% include 'allinstances_index_nongrouped.html' %} + {% endifequal %} + {% ifequal view_style "grouped" %} + {% include 'allinstances_index_grouped.html' %} + {% endifequal %} + {% endif %} + {% else %} + {% if not all_user_vms %} +
+
+ + {% trans "Warning" %}: {% trans "You don't have any Instance" %} +
+
+ {% else %} + + + + + + + + + + + + {% for inst, vm in all_user_vms.items %} + + + + + + + + {% endfor %} + +
{% trans 'Name' %}{% trans 'Status' %}{% trans 'VCPU' %}{% trans 'Memory' %}{% trans 'Actions' %}
{{ vm.name }}
{{ vm.title }}
{% ifequal vm.status 1 %} + {% trans "Active" %} + {% endifequal %} + {% ifequal vm.status 5 %} + {% trans "Off" %} + {% endifequal %} + {% ifequal vm.status 3 %} + {% trans "Suspend" %} + {% endifequal %} + {{ vm.vcpu }}{{ vm.memory }} {% trans "MB" %}
{% csrf_token %} + + + {% ifequal vm.status 5 %} + {% if inst.instance.is_template %} + + {% else %} + + {% endif %} + + + + {% endifequal %} + {% ifequal vm.status 3 %} + + + + + {% endifequal %} + {% ifequal vm.status 1 %} + + + + + + + {% endifequal %} +
+
+ {% endif %} + {% endif %} + + + {% endblock %} {% block script %} diff --git a/instances/templates/allinstances_index_grouped.html b/instances/templates/allinstances_index_grouped.html index 209610f..645ccf4 100644 --- a/instances/templates/allinstances_index_grouped.html +++ b/instances/templates/allinstances_index_grouped.html @@ -3,7 +3,7 @@ # - {% trans "Name" %}
{% trans "Description" %} + {% trans "Name" %}
{% trans "Description" %} {% trans "User"%} {% trans "Status" %} {% trans "VCPU" %} diff --git a/instances/templates/allinstances_index_nongrouped.html b/instances/templates/allinstances_index_nongrouped.html index dc98ed5..33d6c5c 100644 --- a/instances/templates/allinstances_index_nongrouped.html +++ b/instances/templates/allinstances_index_nongrouped.html @@ -2,11 +2,11 @@ - - - - - + + + + + diff --git a/instances/templates/instance.html b/instances/templates/instance.html index f0464b6..3391569 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -3,1335 +3,1334 @@ {% 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 }} {% trans "quota reached" %}. + {% 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 }} {% trans "quota reached" %}. + {% endif %} +
+
+ + {% include 'errors_block.html' %} + {% include 'messages_block.html' %} + +
+
+
+ +
- - {% include 'errors_block.html' %} - {% include 'messages_block.html' %} - - -
-
+
  • + + + {% trans "Settings" %} + +
  • +
  • + + + {% trans "Stats" %} + +
  • +
  • + + + {% trans "Destroy" %} + +
  • + + +
    +
    -
    +
    +
    +
    + + + +
    +
    +

    {% 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." %}

    +
    + + + {% trans "VDI" %} + +
    +
    +
    + {% 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 %} +
    +
    +
    +
    +
    +
    +
    + +
    -
    -
    - - - -
    - {% ifequal status 1 %} -
    -

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

    -
    {% csrf_token %} - -
    - +
    + {% 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 %} +
    +
    +
    -
    -

    {% 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 %} - -
    - -
    -
    -

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

    -
    {% 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 %} + +
    + {% else %} +

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

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

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

    +
    +
    Name
    Description
    Host
    User
    StatusVCPUMemory{% trans "Name" %}
    {% trans "Description" %}
    {% trans "Host" %}
    {% trans "User"%}
    {% trans "Status" %}{% trans "VCPU" %}{% trans "Memory" %} {% trans "Actions" %}
    + + + + + + + {% 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 %} + + + + +
    +
    + + + +
    + {% if request.user.is_superuser %} +
    +

    {% trans 'Autostart' %}

    +
    {% csrf_token %} +
    +
    +

    {% trans "Autostart your instance when host server is power on " %} + {% ifequal autostart 0 %} + + {% else %} + + {% endifequal %} +

    +
    +
    +
    +

    {% trans 'Boot Order' %}

    +
    {% csrf_token %} +
    +
    + {% ifequal status 5 %} +

    {% trans "Enable Boot Menu for your instance when it starts up " %} + {% ifequal bootmenu 0 %} + + {% else %} + + {% endifequal %} + {% else %} + {% ifequal bootmenu 0 %} +

    {% trans "**** Please shutdown instance to modify boot menu ****" %}

    + {% endifequal %} + {% endifequal %} +
    +
    +
    +

    + {% ifequal bootmenu 1 %} +
    +
    + {% for idx, val in boot_order.items %} + + {% endfor %} +
    +
    +
    {% csrf_token %} + +
    +
    +
    + {% for disk in disks %} + + {% endfor %} + {% for cd in media %} + + {% endfor %} + {% for net in networks %} + + {% endfor %}
    - {% 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 %} -
    -
    - +
    + + {% endifequal %} +
    +
    +
    +
    {% csrf_token %} +

    + {% trans "Instance Media" %} + {% if status == 5 %} + + {% else %} + + {% endif %} +

    +
    + {% for cd in media %} +
    {% csrf_token %} +
    + + {% trans "CDROM" %} {{ forloop.counter }} + + {% if not cd.image %} +
    +
    -
    - {% ifequal status 5 %} - +
    + {% if media_iso and allow_admin_or_not_template %} + + {% else %} + + {% endif %} + {% if status == 5 and allow_admin_or_not_template %} + + {% endif %} +
    {% else %} - - {% endifequal %} -
    -
    -
    - {% endif %} - {% ifequal status 1 %} -
    -

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

    -
    - - - {% trans "VDI" %} - +
    + +
    +
    + + {% if allow_admin_or_not_template %} + + {% else %} + + {% endif %} +
    + {% endif %}
    -
    + + {% empty %} +
    +
    {% trans 'There is not any CD-ROM device.' %}
    + {% endfor %} +
    +

    + {% trans "Instance Volume" %} + {% include 'add_instance_volume.html' %} +

    + +
    + + + + + + + + + + + {% for disk in disks %} + + + + + + + + + {% endfor %} + +
    {% trans "Device" %}{% trans "Used" %}{% trans "Capacity" %}{% trans "Storage" %}{% trans "Source" %}{% trans "Action" %}
    + + {{ disk.dev }} +
    + {{ disk.target }} +
    {{ disk.used | filesizeformat}}{{ disk.size | filesizeformat }}{{ disk.storage }}{{ disk.path }} +
    {% csrf_token %} + + + + + {% ifequal status 5 %} + + + {% else %} + + + {% endifequal %} +
    +
    +
    +
    +
    +
    +

    + {% trans "Add a network device" %} + {% include 'add_instance_network_block.html' %} +

    + +
    +
    {% csrf_token %} + {% for network in networks %} + {% if forloop.first %} +

    {% trans "Network Devices" %}

    + {% endif %} +
    +
    + + +
    +
    +
    + + + + +
    +
    + + + + +
    +
    + + + + +
    + +
    +
    + {% endfor %} +
    +
    +
    +
    +
    +

    {% 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 %} +
    +
    +
    +
    +
    +

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

    +
    +
    + + + {% for userinstance in userinstances %} + + + + + {% endfor %} + +
    {{ userinstance.user }} +
    {% csrf_token %} + + +
    +
    +
    +
    +
    + {% endif %} + {% if request.user.is_superuser or request.user.is_staff 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 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 %} +
    + +
    +
    -
    -
    - - - -
    -
    - {% 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 %} -
    +
    + +
    + +
    +
    + {% ifequal status 5 %} + + {% else %} + + {% endifequal %} + +
    +
    +
    +
    {% csrf_token %} +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    + {% ifequal status 5 %} + + {% else %} + + {% endifequal %} +
    +
    +
    + {% endif %} +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +

    {% trans "CPU Usage" %}

    +
    +
    +
    +
    + +
    -
    -
    -
    - - - -
    -
    - {% 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 %} +
    +
    +

    {% trans "Memory Usage" %}

    +
    +
    +
    +
    + +
    -
    -
    -
    - - - -
    - {% if request.user.is_superuser %} -
    -

    {% trans 'Autostart' %}

    -
    {% csrf_token %} -
    -
    -

    {% trans "Autostart your instance when host server is power on " %} - {% ifequal autostart 0 %} - - {% else %} - - {% endifequal %} -

    -
    -
    -
    -

    {% trans 'Boot Order' %}

    -
    {% csrf_token %} -
    -
    - {% ifequal status 5 %} -

    {% trans "Enable Boot Menu for your instance when it starts up " %} - {% ifequal bootmenu 0 %} - - {% else %} - - {% endifequal %} - {% else %} - {% ifequal bootmenu 0 %} -

    {% trans "**** Please shutdown instance to modify boot menu ****" %}

    - {% endifequal %} - {% endifequal %} -
    -
    -
    -

    - {% ifequal bootmenu 1 %} -
    -
    - {% for idx, val in boot_order.items %} - - {% endfor %} -
    -
    -
    {% csrf_token %} - -
    -
    -
    - {% for disk in disks %} - - {% endfor %} - {% for cd in media %} - - {% endfor %} - {% for net in networks %} - - {% endfor %} -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - {% endifequal %} -
    -
    -
    -
    {% csrf_token %} -

    - {% trans "Instance Media" %} - {% if status == 5 %} - - {% else %} - - {% endif %} -

    -
    - {% for cd in media %} -
    {% csrf_token %} -
    - - {% trans "CDROM" %} {{ forloop.counter }} - - {% if not cd.image %} -
    - -
    -
    - {% if media_iso and allow_admin_or_not_template %} - - {% else %} - - {% endif %} - {% if status == 5 and allow_admin_or_not_template %} - - {% endif %} -
    - {% else %} -
    - -
    -
    - - {% if allow_admin_or_not_template %} - - {% else %} - - {% endif %} -
    - {% endif %} -
    -
    - {% empty %} -
    -
    {% trans 'There is not any CD-ROM device.' %}
    -
    - {% endfor %} -
    -

    - {% trans "Instance Volume" %} - {% include 'add_instance_volume.html' %} -

    - -
    - - - - - - - - - - - {% for disk in disks %} - - - - - - - - - {% endfor %} - -
    {% trans "Device" %}{% trans "Used" %}{% trans "Capacity" %}{% trans "Storage" %}{% trans "Source" %}{% trans "Action" %}
    - - {{ disk.dev }} -
    - {{ disk.target }} -
    {{ disk.used | filesizeformat}}{{ disk.size | filesizeformat }}{{ disk.storage }}{{ disk.path }} -
    {% csrf_token %} - - - - - {% ifequal status 5 %} - - - {% else %} - - - {% endifequal %} -
    -
    -
    -
    -
    -
    -

    - {% trans "Add a network device" %} - {% include 'add_instance_network_block.html' %} -

    - -
    -
    {% csrf_token %} - {% for network in networks %} - {% if forloop.first %} -

    {% trans "Network Devices" %}

    - {% endif %} -
    -
    - - -
    -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    - -
    -
    - {% endfor %} -
    -
    -
    -
    -
    -

    {% 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 %} -
    -
    -
    -
    -
    -

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

    -
    -
    - - - {% for userinstance in userinstances %} - - - - - {% endfor %} - -
    {{ userinstance.user }} -
    {% csrf_token %} - - -
    -
    -
    -
    -
    - {% endif %} - {% if request.user.is_superuser or request.user.is_staff 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 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 %} -
    -
    -
    -
    -
    {% csrf_token %} -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    - {% ifequal status 5 %} - - {% else %} - - {% endifequal %} -
    -
    -
    - {% endif %} -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -

    {% trans "CPU Usage" %}

    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -

    {% trans "Memory Usage" %}

    -
    -
    -
    -
    - -
    -
    -
    -
    - {% for net in networks %} -
    -
    -

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

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

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

    -
    -
    -
    -
    - -
    -
    -
    -
    - {% endfor %} -
    + {% for net in networks %} +
    +
    +

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

    -
    -
    - - - - - - - - - - - -
    {% trans "Date" %}{% trans "User" %}{% trans "Message" %}
    {% trans 'None' %}...
    +
    +
    +
    + +
    -
    -
    -
    -
    -
    - - - -
    -
    -

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

    - {% if request.user.is_superuser or userinstance.is_delete %} - {% ifequal status 3 %} - - {% else %} -
    {% csrf_token %} -
    - -
    - -
    - {% endifequal %} - {% else %} - - {% endif %} -
    + {% endfor %} + {% for disk in disks %} +
    +
    +

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

    +
    +
    +
    +
    + +
    +
    + {% endfor %} +
    +
    +
    +
    + + + + + + + + + + + +
    {% trans "Date" %}{% trans "User" %}{% trans "Message" %}
    {% trans '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 %} @@ -1501,11 +1500,11 @@ {% endif %} diff --git a/interfaces/templates/interface.html b/interfaces/templates/interface.html index 5c5c2b5..1693d81 100644 --- a/interfaces/templates/interface.html +++ b/interfaces/templates/interface.html @@ -2,72 +2,72 @@ {% load i18n %} {% block title %}{% trans "Interface" %} - {{ iface }}{% endblock %} {% block content %} - - - + + + - {% include 'errors_block.html' %} + {% include 'errors_block.html' %} -
    -
    -

    {% trans "Interface:" %}

    -

    {% trans "IPv4:" %} ({% ifequal ipv4 None %}None{% else %}{{ ipv4_type }}{% endifequal %})

    -

    {% trans "IPv6:" %} ({% ifequal ipv6 None %}None{% else %}{{ ipv6_type }}{% endifequal %})

    -

    {% trans "MAC Adress:" %}

    -

    {% trans "Interface Type:" %}

    - {% ifequal itype 'bridge' %} -

    {% trans "Bridge device" %}

    +
    +
    +

    {% trans "Interface" %}:

    +

    {% trans "IPv4" %}: ({% ifequal ipv4 None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endifequal %})

    +

    {% trans "IPv6" %}: ({% ifequal ipv6 None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endifequal %})

    +

    {% trans "MAC Adress" %}:

    +

    {% trans "Interface Type" %}:

    + {% ifequal itype 'bridge' %} +

    {% trans "Bridge device" %}

    + {% endifequal %} +

    {% trans "Boot Mode" %}:

    +

    {% trans "State" %}:

    +
    +
    +

    {{ iface }}

    +

    {{ ipv4 }}

    +

    {{ ipv6 }}

    +

    {{ mac }}

    +

    {{ itype }}

    + {% ifequal itype 'bridge' %} +

    {{ bridge }}

    + {% endifequal %} +

    {{ start_mode }}

    +

    +

    {% csrf_token %} + {% ifequal state 0 %} + + + {% else %} + {% endifequal %} -

    {% trans "Boot Mode:" %}

    -

    {% trans "State:" %}

    -
    -
    -

    {{ iface }}

    -

    {{ ipv4 }}

    -

    {{ ipv6 }}

    -

    {{ mac }}

    -

    {{ itype }}

    - {% ifequal itype 'bridge' %} -

    {{ bridge }}

    - {% endifequal %} -

    {{ start_mode }}

    -

    - {% csrf_token %} - {% ifequal state 0 %} - - - {% else %} - - {% endifequal %} - -

    -
    -
    + +

    +
    +
    {% endblock %} \ No newline at end of file diff --git a/interfaces/templates/interfaces.html b/interfaces/templates/interfaces.html index 8305b88..5b8ef13 100644 --- a/interfaces/templates/interfaces.html +++ b/interfaces/templates/interfaces.html @@ -3,73 +3,73 @@ {% load staticfiles %} {% block title %}{% trans "Interfaces" %} - {{ compute.name }}{% endblock %} {% block content %} - -
    -
    - {% include 'create_iface_block.html' %} -

    {{ compute.name }}

    - + +
    +
    + {% include 'create_iface_block.html' %} +

    {{ compute.name }}

    + +
    +
    + + + {% include 'errors_block.html' %} + +
    + {% if not ifaces_all %} +
    +
    + + {% trans "Warning:" %} {% trans "Hypervisor doesn't have any Interfaces" %}
    - - - {% include 'errors_block.html' %} - -
    - {% if not ifaces_all %} -
    -
    - - {% trans "Warning:" %} {% trans "Hypervisor doesn't have any Interfaces" %} + {% else %} + {% for iface in ifaces_all %} +
    + - {% else %} - {% for iface in ifaces_all %} -
    -
    -
    -

    {{ iface.name }} -

    +
    +
    +
    +

    {% trans "Type:" %}

    +

    {% trans "MAC:" %}

    -
    -
    -
    -

    {% trans "Type:" %}

    -

    {% trans "MAC:" %}

    -
    -
    -

    {{ iface.type }}

    -

    {{ iface.mac }}

    -
    -
    +
    +

    {{ iface.type }}

    +

    {{ iface.mac }}

    - {% endfor %} - {% endif %} -
    +
    +
    + {% endfor %} + {% endif %} +
    {% endblock %} {% block script %} - + + diff --git a/storages/templates/storage.html b/storages/templates/storage.html index e806cf3..e7ddfe1 100644 --- a/storages/templates/storage.html +++ b/storages/templates/storage.html @@ -7,194 +7,194 @@ {% endblock %} {% block content %} - -
    -
    - {% include 'create_stg_vol_block.html' %} -

    {% trans "Storage:" %} {{ pool }}

    - -
    -
    - - -{% include 'errors_block.html' %} -{% include 'messages_block.html' %} - -
    -
    -

    {% trans "Pool name:" %}

    -

    {% trans "Pool type:" %}

    -

    {% trans "Pool path:" %}

    -

    {% trans "Pool status:" %}

    -

    {% trans "Size:" %} ({{ size|filesizeformat }} / {{ used|filesizeformat }})

    -

    {% trans "State:" %}

    -

    {% trans "Autostart:" %}

    -
    -
    -

    {{ pool }}

    -

    {% if not type %}{% trans "None" %}{% else %}{{ type }}{% endif %}

    -

    {% if not path %}{% trans "None" %}{% else %}{{ path }}{% endif %}

    -

    {% if not status %}{% trans "None" %}{% else %}{{ status }}{% endif %}

    -

    {% trans "Usage:" %} {{ percent }}%

    -

    -

    {% csrf_token %} - {% ifequal state 0 %} - - - {% else %} - - {% endifequal %} -
    -

    -

    -

    {% csrf_token %} - {% ifequal autostart 0 %} - - {% else %} - - {% endifequal %} -
    -

    -
    -
    -
    -
    - {% if state %} -
    -
    - -
    - - -
    - {% if volumes %} -
    - - - - - - - - - - - - - {% for volume in volumes %} - - - - - - - - - - {% endfor %} - -
    #{% trans "Name" %}{% trans "Allocated" %}{% trans "Size" %}{% trans "Format" %}{% trans "Action" %}
    {{ forloop.counter }}{{ volume.name }}{{ volume.allocation|filesizeformat }}{{ volume.size|filesizeformat }}{{ volume.type }} - - - {% ifnotequal volume.type "iso" %} - - {% else %} - - {% endifnotequal %} - -
    {% csrf_token %} - - -
    -
    -
    - {% else %} + +
    -
    - - {% trans "Warning:" %} {% trans "Hypervisor doesn't have any Volumes" %} -
    + {% include 'create_stg_vol_block.html' %} +

    {% trans "Storage:" %} {{ pool }}

    +
    - {% endif %} - {% endif %}
    -
    -{% include 'pleasewaitdialog.html' %} + + + {% include 'errors_block.html' %} + {% include 'messages_block.html' %} + +
    +
    +

    {% trans "Pool name" %}:

    +

    {% trans "Pool type" %}:

    +

    {% trans "Pool path" %}:

    +

    {% trans "Pool status" %}:

    +

    {% trans "Size" %}: ({{ size|filesizeformat }} / {{ used|filesizeformat }})

    +

    {% trans "State" %}:

    +

    {% trans "Autostart" %}:

    +
    +
    +

    {{ pool }}

    +

    {% if not type %}{% trans "None" %}{% else %}{{ type }}{% endif %}

    +

    {% if not path %}{% trans "None" %}{% else %}{{ path }}{% endif %}

    +

    {% if not status %}{% trans "None" %}{% else %}{{ status }}{% endif %}

    +

    {% trans "Usage" %}: {{ percent }}%

    +

    +

    {% csrf_token %} + {% ifequal state 0 %} + + + {% else %} + + {% endifequal %} +
    +

    +

    +

    {% csrf_token %} + {% ifequal autostart 0 %} + + {% else %} + + {% endifequal %} +
    +

    +
    +
    +
    +
    + {% if state %} +
    +
    + +
    + + +
    + {% if volumes %} +
    + + + + + + + + + + + + + {% for volume in volumes %} + + + + + + + + + + {% endfor %} + +
    #{% trans "Name" %}{% trans "Allocated" %}{% trans "Size" %}{% trans "Format" %}{% trans "Action" %}
    {{ forloop.counter }}{{ volume.name }}{{ volume.allocation|filesizeformat }}{{ volume.size|filesizeformat }}{{ volume.type }} + + + {% ifnotequal volume.type "iso" %} + + {% else %} + + {% endifnotequal %} + +
    {% csrf_token %} + + +
    +
    +
    + {% else %} +
    +
    + + {% trans "Warning" %}: {% trans "Hypervisor doesn't have any Volumes" %} +
    +
    + {% endif %} + {% endif %} +
    +
    + {% include 'pleasewaitdialog.html' %} {% endblock %} {% block script %}