{% extends "delete_view.html" %} {% load i18n %} {% block before_form %} {% if is_protected %} {# Drawn here, not by the page this extends, so that what stops the deletion is named for what it is. #}
{% translate "This record cannot be deleted." %} {% if protected_kind == "measurements" %} {% translate "It is referenced by the following measurements, which must be removed or updated first:" %} {% elif protected_kind == "datasets" %} {% translate "It holds the following public datasets, which must be removed or made private first:" %} {% else %} {% translate "It is referenced by the following records, which must be removed or updated first:" %} {% endif %} {% if protected_unlisted %} {% blocktranslate count counter=protected_unlisted %}One more measurement you do not have access to also stops this deletion.{% plural %}{{ counter }} more measurements you do not have access to also stop this deletion.{% endblocktranslate %} {% endif %}
{% else %} {{ block.super }} {% endif %} {% if related_unlisted %} {% blocktranslate count counter=related_unlisted %}One more row you do not have access to also goes with this record.{% plural %}{{ counter }} more rows you do not have access to also go with this record.{% endblocktranslate %} {% endif %} {% endblock before_form %}