{% if backend_error %}
{{ backend_error }}
{% endif %}
{# Category filter #}
{% trans "All" %} {{ total_count }}
{% trans "Cloud-Init" %} {{ cloudinit_templates|length }}
{% trans "QEMU/KVM (no Cloud-Init)" %} {{ plain_templates|length }}
{% trans "LXC" %} {{ lxc_templates|length }}
{% if total_count == 0 and not backend_error %}
{% trans "No templates were found on this endpoint." %}
{% endif %}
{# Cloud-Init templates #}
{% trans "Cloud-Init Templates" %}
{% trans "Name" %}
{% trans "VMID" %}
{% trans "Node" %}
{% trans "Cloud-Init source" %}
{% trans "Memory (MB)" %}
{% trans "Disk (GiB)" %}
{% trans "Tags" %}
{% trans "Actions" %}
{% for t in cloudinit_templates %}
{{ 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 %}
{% trans "Create new instance" %}
{% else %}
{% trans "Create new instance" %}
{% endif %}
{% empty %}
{% trans "No Cloud-Init templates found." %}
{% endfor %}
{# Plain QEMU/KVM templates #}
{% trans "QEMU/KVM Templates (no Cloud-Init)" %}
{% trans "Name" %}
{% trans "VMID" %}
{% trans "Node" %}
{% trans "Memory (MB)" %}
{% trans "Disk (GiB)" %}
{% trans "Tags" %}
{% trans "Actions" %}
{% for t in plain_templates %}
{{ t.name }}
{{ t.vmid|default:"—" }}
{{ t.node|default:"—" }}
{{ t.memory_mb|default:"—" }}
{{ t.disk_gib|default:"—" }}
{{ t.tags|default:"—" }}
{% if allow_writes %}
{% trans "Create new instance" %}
{% else %}
{% trans "Create new instance" %}
{% endif %}
{% empty %}
{% trans "No plain QEMU/KVM templates found." %}
{% endfor %}
{# LXC container templates #}
{% trans "LXC Container Templates" %}
{% trans "Name" %}
{% trans "Storage" %}
{% trans "Volume ID" %}
{% trans "Size (GiB)" %}
{% trans "Actions" %}
{% for t in lxc_templates %}
{{ t.name }}
{{ t.storage|default:"—" }}
{{ t.volid }}
{{ t.size_gib|default:"—" }}
{% if allow_writes %}
{% trans "Create new instance" %}
{% else %}
{% trans "Create new instance" %}
{% endif %}
{% empty %}
{% trans "No LXC container templates found." %}
{% endfor %}