{% extends "base.html" %} {% load i18n %} {% block title %}{% trans "Storage Pool" %}{% endblock %} {% block content %} {% include 'sidebar.html' %}
{% if errors %} {% for error in errors %}
{{ error }}
{% endfor %} {% endif %} {% if form.name.errors %}
{% for error in form.name.errors %} {{ error }} {% endfor %}
{% endif %}

{% trans "Pool name" %}

{% trans "Pool type" %}

{% trans "Pool path" %}

{% trans "Pool status" %}

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

{% trans "State" %}

{% trans "Autostart" %}

[{% for storage in storages %} {% ifequal storage pool %} {{ pool }} {% else %} {{ storage }} {% endifequal %} {% endfor %} ]

{% 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 %} {% ifequal pool "iso" %}

{% trans "Images" %}


{% ifnotequal state 0 %} {% trans "Upload ISO" %}

{% endifnotequal %} {% if volumes %} {% for volume in volumes %} {% endfor %}
# {% trans "Name" %} {% trans "Size" %} {% trans "Format" %} {% trans "Action" %}
{{ forloop.counter }} {{ volume.name }} {{ volume.size|filesizeformat }} {{ volume.type }}
{% csrf_token %}
{% else %}

{% trans "You do not have any ISO images or storage pool not active" %}

{% endif %} {% else %}

{% trans "Volumes" %}


{% ifnotequal state 0 %} {% trans "Add Image" %}

{% endifnotequal %} {% if volumes %} {% for volume in volumes %} {% endfor %}
# {% trans "Name" %} {% trans "Size" %} {% trans "Format" %} {% trans "Action" %}
{{ forloop.counter }} {{ volume.name }} {{ volume.size|filesizeformat }} {{ volume.type }} {% ifnotequal volume.type "iso" %} {% trans "Clone" %} {% else %} {% trans "Clone" %} {% endifnotequal %}
{% csrf_token %}
{% else %}

{% trans "You do not have any volumes or storage pools active" %}

{% endif %} {% endifequal %} {% endif %}
{% endblock %} {% block script %} {% endblock %}