{% extends "admin/elements/nitty_gritty.html" %} {% load i18n static foundation next_url %} {% block contextual_title %} {% if affiliation %} {% blocktrans with affiliation=affiliation|truncatewords:5 %} Edit "{{ affiliation }}" {% endblocktrans %} {% else %} {% blocktrans with organization=organization.name %} Create affiliation with "{{ organization }}" {% endblocktrans %} {% endif %} {% endblock contextual_title %} {% block title-section %} {% if affiliation %} {% blocktrans with affiliation=affiliation|truncatewords:5 %} Edit "{{ affiliation }}" {% endblocktrans %} {% else %} {% blocktrans with organization=organization.name %} Create affiliation with "{{ organization }}" {% endblocktrans %} {% endif %} {% endblock title-section %} {% block breadcrumbs %} {{ block.super }} {% if account and account == request.user %} {% include "elements/breadcrumbs/edit_profile_base.html" %} {% if not affiliation %}
  • {% trans "Add Affiliation" %}
  • {% endif %} {% elif article and author %} {% include "elements/breadcrumbs/edit_author_base.html" with subpage="yes" %} {% if not affiliation %}
  • {% trans "Add Affiliation" %}
  • {% endif %} {% endif %} {% if affiliation %}
  • {% blocktrans with affiliation=affiliation|truncatewords:5 %} Edit "{{ affiliation }}" {% endblocktrans %}
  • {% else %}
  • {% blocktrans with organization=organization.name %} Create affiliation with "{{ organization }}" {% endblocktrans %}
  • {% endif %} {% endblock breadcrumbs %} {% block nitty %} {% include "admin/core/affiliation_summary.html" %} {% endblock nitty %} {% block gritty_h2 %} {% trans "Affiliation details" %} {% endblock gritty_h2 %} {% block gritty_form %} {% if affiliation %} {% blocktrans with organization=organization.name %}

    Make your changes to the affiliation, and then select Save.

    {% endblocktrans %} {% else %} {% blocktrans with organization=organization.name %}

    Enter optional affiliation details, and select Save to create the affiliation.

    {% endblocktrans %} {% endif %}
    {% include "admin/elements/layout/key_value_above.html" with key="Organization name" value=organization.name %} {% if affiliation and organization.custom_label %}
    {% if account %} {% url_with_return 'core_organization_name_update' organization.custom_label.pk as edit_url %} {% elif article and author %} {% url_with_return 'submission_organization_name_update' article.pk author.pk organization.custom_label.pk as edit_url %} {% endif %} {% include "elements/a_edit.html" with href=edit_url label="Edit custom name" %}
    {% endif %}
    {% include "admin/elements/layout/key_value_above.html" with key="Locations" list=True value=organization.locations.all %} {% if organization.ror_id %} {% include "admin/elements/layout/key_value_above.html" with key="ROR" link=organization.uri value=organization.uri %} {% endif %}
    {% include "admin/elements/forms/field.html" with field=form.title %} {% include "admin/elements/forms/field.html" with field=form.department %} {% include "admin/elements/forms/field.html" with field=form.is_primary %}
    {% include "admin/elements/forms/field.html" with field=form.start %} {% include "admin/elements/forms/field.html" with field=form.end %}
    {% include "elements/button_save.html" %} {% include "elements/a_cancel.html" with href=request.GET.next %}
    {% endblock gritty_form %}