{% extends 'generic/object.html' %} {% load i18n %} {% block content %}

{% trans "Templates" %}

{% if packer_installed and packer_add_url %} {% trans "Create Cloud-Init template image" %} {% else %} {# Bootstrap tooltips do not fire on a disabled button (pointer-events:none), #} {# so the tooltip lives on the wrapping span. #} {% endif %}
{% if backend_error %} {% endif %} {# Category filter #}
{% if total_count == 0 and not backend_error %}

{% trans "No templates were found on this endpoint." %}

{% endif %} {# Cloud-Init templates #}
{% trans "Cloud-Init Templates" %}
{% for t in cloudinit_templates %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "VMID" %} {% trans "Node" %} {% trans "Cloud-Init source" %} {% trans "Memory (MB)" %} {% trans "Disk (GiB)" %} {% trans "Tags" %} {% trans "Actions" %}
{{ t.name }} {{ t.vmid|default:"—" }} {{ t.node|default:"—" }} {% if t.cicustom %}cicustom{% elif t.cloud_init_drives %}{{ t.cloud_init_drives }}{% else %}—{% endif %} {{ t.memory_mb|default:"—" }} {{ t.disk_gib|default:"—" }} {{ t.tags|default:"—" }} {% if allow_writes %} {% else %} {% endif %}
{% trans "No Cloud-Init templates found." %}
{# Plain QEMU/KVM templates #}
{% trans "QEMU/KVM Templates (no Cloud-Init)" %}
{% for t in plain_templates %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "VMID" %} {% trans "Node" %} {% trans "Memory (MB)" %} {% trans "Disk (GiB)" %} {% trans "Tags" %} {% trans "Actions" %}
{{ t.name }} {{ t.vmid|default:"—" }} {{ t.node|default:"—" }} {{ t.memory_mb|default:"—" }} {{ t.disk_gib|default:"—" }} {{ t.tags|default:"—" }} {% if allow_writes %} {% else %} {% endif %}
{% trans "No plain QEMU/KVM templates found." %}
{# LXC container templates #}
{% trans "LXC Container Templates" %}
{% for t in lxc_templates %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Storage" %} {% trans "Volume ID" %} {% trans "Size (GiB)" %} {% trans "Actions" %}
{{ t.name }} {{ t.storage|default:"—" }} {{ t.volid }} {{ t.size_gib|default:"—" }} {% if allow_writes %} {% else %} {% endif %}
{% trans "No LXC container templates found." %}
{% endblock %} {% block modals %} {{ block.super }} {% endblock %} {% block javascript %} {{ block.super }} {% endblock %}