{% extends base_template %} {% load i18n %} {% load staticfiles %} {% load my_filters %} {% block control_panel_active %}active{% endblock control_panel_active %} {% block headjs %}{{ block.super }} {% endblock headjs %} {% block headcss %}{{ block.super }} {% endblock headcss %} {% block content %}

{% trans "My Organization" %}{{ organizations|pluralize }}

?
{% for invite in my_invitations %}
{% csrf_token %}

You have been invited by {% firstof invite.invited_by.get_full_name invite.invited_by.username %} to help administer "{{ invite.organization }}". Please click below to join the organization or to decline this invitation.

{% endfor %} {% if not organizations %}

You currently have no organizations. Would you like to create a new organization?

To join an existing organization, contact one of its administrators to have them add you.

{% else %} {% for pk,org in organizations.items %}

{{ org.name }}

{% if org.name == HEADLESS_ORG_NAME %}
?
{% endif %}
    {% if org.name != HEADLESS_ORG_NAME %}
  • {% endif %} {% if org.owner == request.user and not org.get_zones %}
  • {% endif %}

Affiliated Sharing Networks

?
{% for zone in zones|get_item:pk %} {% endfor %}
{{ zone.name }} Manage {% if zone.is_deletable %} Delete {% endif %}

Organization Admins

?
{% for member in org.get_members %}{# this is slow #} {% endfor %} {% for invite in org.invitations.all %}{# TODO(bcipolli) this is inefficient, convert to list (how?) #} {% endfor %}
{% firstof member.get_full_name member.username %} {% if org.owner == member and member == request.user %} (You are the owner) {% elif member == request.user %} (You) {% elif org.owner == member %} (Owner) {% else %}
{% csrf_token %} (Remove Admin)
{% endif %}
{{ invite.email_to_invite }} (invited)
{% csrf_token %} (Revoke Invite)
{% csrf_token %} {{ org.form.invited_by }}

Add Admin

{% for error in org.form.non_field_errors %}
{{ error }}
{% endfor %}

{% endfor %} {% endif %}

{% blocktrans %}You're ready to download and install KA Lite{% endblocktrans %}

{% endblock content %}