{% load i18n %}
{% load sizefieldtags %}
{% load crispy_forms_tags %}
{% load static %}
<div>
  <h3>
    {% trans "Exports" %}
  </h3>
  <div class="clearfix"></div>

  {% if not instance.exportedvm_set.all %}
    {% trans "No exports are created." %}
  {% endif %}
  {% for export in instance.exportedvm_set.all %}
    <h4 class="list-group-item-heading dashboard-vm-details-network-h3">
      <i class="fa fa-file"></i> {{ export.name }} exportend on {{ export.created }}
      <a href="/image-dl/{{ export.filename }}" class="btn btn-info operation disk-export-btn">
        <i class="fa fa-{{ op.export_disk.icon }} fa-fw-12"></i> {% trans "Download" %}
      </a>
      <a href="{% url "dashboard.views.exportedvm-delete" pk=export.pk %}" class="btn btn-danger operation disk-export-btn">
        <i class="fa fa-times fa-fw-12"></i> {% trans "Delete" %}
      </a>
    </h4>
  {% endfor %}
</div>
