{% extends "base.html" %} {% load i18n %} {% load static %} {% load bootstrap_icons %} {% load django_bootstrap5 %} {% load operations %} {% block title %}{{ target.name }} - {% trans "Backup targets" %}{% endblock %} {% block page_heading %}{% trans "Backup targets" %} / {{ target.name }}{% endblock page_heading %} {% block content %}
{% blocktrans count counter=backup_count %}{{ counter }} backup.{% plural %}{{ counter }} backups.{% endblocktrans %} {% if target.owners %}{% trans "VM owners with the backup permission may use it." %}{% else %}{% trans "Only superusers use it." %}{% endif %}
{% csrf_token %}
{% if pools %}
{% csrf_token %}{% submission_key %}
{% endif %}
{% for item in pools %}
{{ item.row.compute.name }}: {{ item.row.pool }} {% if not backup_count %}
{% csrf_token %}
{% endif %}
{% if item.error %}
{% bs_icon 'exclamation-triangle' %} {{ item.error }}
{% else %} {% include "computes/pool_bar.html" with pool=item.space hide_name=True %} {% if item.inside %}
{% blocktrans with pool=item.inside %}The target is inside storage pool {{ pool }}: its backups are lost with that storage.{% endblocktrans %}
{% endif %} {% endif %}
{% endfor %}
{% trans "Add a compute's storage pool" %}

{% trans "The pool must be the same directory as the target's other pools, as an NFS share mounted on each host." %}

{% csrf_token %} {% bootstrap_form form %}
{% if not backup_count %}
{% csrf_token %}
{% endif %} {% endblock %} {% block script %}{% endblock %}