{% load next_url %}
{% for affiliation in interface.affiliations %}
{% if interface.affiliations|length > 1 %} {% include "admin/core/affiliation_display.html" with affiliation=affiliation display_primary=True %} {% else %} {% include "admin/core/affiliation_display.html" with affiliation=affiliation display_primary=False %} {% endif %}
{% if article %} {% url_with_return "submission_affiliation_update" article.pk author.pk affiliation.pk as edit_url %} {% url_with_return "submission_affiliation_delete" article.pk author.pk affiliation.pk as remove_url %} {% else %} {% url_with_return 'core_affiliation_update' affiliation.pk as edit_url %} {% url_with_return 'core_affiliation_delete' affiliation.pk as remove_url %} {% endif %} {% trans "Edit affiliation" as edit_label %} {% include "elements/a_edit.html" with href=edit_url label=edit_label %} {% trans "Remove affiliation" as remove_label %} {% include "elements/a_remove.html" with href=remove_url label=remove_label %}
{% empty %}
{% trans "No affiliations." %}
{% endfor %}
{% if interface.orcid %} {% if article %} {% url_with_return 'submission_affiliation_update_from_orcid' article.pk author.pk 'primary' as primary_url %} {% url_with_return 'submission_affiliation_update_from_orcid' article.pk author.pk 'all' as all_url %} {% else %} {% url_with_return 'core_affiliation_update_from_orcid' 'primary' as primary_url %} {% url_with_return 'core_affiliation_update_from_orcid' 'all' as all_url %} {% endif %} {% trans "Get primary affiliation from ORCID" %} {% trans "Update all affiliations from ORCID" %} {% endif %} {% if article %} {% url_with_return 'submission_organization_search' article.pk author.pk as create_url %} {% else %} {% url_with_return 'core_organization_search' as create_url %} {% endif %} {% trans "Add affiliation" %}