{% load i18n util %}

{% trans "Affiliate with organization" %}

{% for affiliation_request in request.user.affiliation_requests.all %} {% if affiliation_request.status == "pending" %}
{% if affiliation_request.org.owned %}
{% blocktrans with ar_name=affiliation_request.name trimmed %} Your affiliation with {{ ar_name }} is pending approval. {% endblocktrans %}
{% csrf_token %}
{% else %}
{% blocktrans with ar_name=affiliation_request.name trimmed %} Your affiliation with {{ ar_name }} is being reviewed by the PeeringDB administrative staff.{% endblocktrans %}
{% endif %}
{% elif affiliation_request.status == "canceled" %}
{% blocktrans with ar_name=affiliation_request.name trimmed %} You have canceled your affiliation request with {{ ar_name }} {% endblocktrans %}
{% elif affiliation_request.status == "denied" %}
{% blocktrans with ar_name=affiliation_request.name trimmed %} Your affiliation with {{ ar_name }} was denied {% endblocktrans %} {% if affiliation_request.org and not affiliation_request.org|org_email:affiliation_request.user %}
{% blocktrans trimmed %}The organization requires you to have a confirmed email address at one of the following domains{% endblocktrans %}
{% endif %}
{% elif affiliation_request.status == "approved" %}
{% blocktrans with ar_name=affiliation_request.name trimmed %} Your affiliation with {{ ar_name }} was approved {% endblocktrans %}
{% endif %} {% endfor %}

{% trans "To affiliate with an existing organization, please enter the ASN or organization name below." %}

{% trans "To register a new network organization, please enter the ASN and organization name below." %}

{% trans "To register a new facility or exchange organization, please enter the organization name below (ASN is optional)." %}

{% blocktrans trimmed %} Affiliation is your own organisation. That means you are an employee or otherwise working for the organisation. The affiliation request is sent to support@peeringdb.com if no one is affiliated to the organisation yet. Otherwise, the admins are contacted. Only affiliate once per organisation. If you don't get an answer within a couple of days, please contact support@peeringdb.com. {% endblocktrans %}

{% trans "Affiliate" %}
{% trans "In case the RiR entry cannot be retrieved for your ASN, please contact" %} support@peeringdb.com {% trans "for assistance" %}.

{% trans "Existing affiliations" %}

{% for org in affiliations %}
{% trans "Your affiliation with" %} {{ org.name }} {% trans "has been approved" %}.
{% endfor %}