{% load i18n static %} {% load check_permissions %}

{% blocktranslate count counter=authors|length trimmed %} Author {% plural %} Authors {% endblocktranslate %} {% if user|has_attach_permission %}     {% translate 'Add' %} {% endif %}

{% if user|has_attach_permission %} {% endif %}
{% for author in authors %}

{% for preferred_language in preferred_languages %} {% for name in author.names.all %} {% if name.language.code == preferred_language.code %} {{ name.name }} {{ name.language.code }} {% endif %} {% endfor %} {% endfor %} {% if user|has_detach_permission:author %}     {% translate 'Remove' %} {% endif %}

{% if user|has_detach_permission:author %} {% endif %} {% endfor %}