{% extends "useradmin/base.html" %} {% load crispy_forms_tags %} {% block content %} Back to account list
{# Heading and actions buttons #}
{# HEADING #}

{% if account %} Editing account "{{ account.name }}" (#{{ account.id }}) {% else %} Create new account {% endif %}

{# column #} {% comment %} ACTION BUTTONS {% endcomment %}
    {% if account and current_user_data.is_admin and not current_user_data.sudoer %} {% ifnotequal current_user_data.account.id account.id %}
  • {% endifnotequal %} {% endif %} {% if account and not account.is_system_account %}
  • Delete account
  • {% endif %}
{# row #}
{% comment %} ACCOUNT FORM {% endcomment %} {% if account_form %}
{% crispy account_form %}
{% endif %} {% if account %} {% comment %} ORGANIZATIONS {% endcomment %}
Organizations {% if account.organizations.all %}
{% for org in account.organizations.all %} {% endfor %}
{{ org }} Remove
{% else %}

Not member of any organizations.

{% endif %} {% if org_form %}
Add organization membership
{% crispy org_form %} {% endif %}
{# END ORGANIZATIONS #} {# GROUP MEMBERSHIPS #}
Group memberships {% if account.accountgroup_set.all %}
{% for group in account.accountgroup_set.all %} {% endfor %}
{{ group }} {{ group.description }} {% if not group.is_protected_group %} Remove {% else %}   {% endif %}
{% else %}

Not member of any groups.

{% endif %} {% if group_form %}
Add group membership
{% crispy group_form %} {% endif %}
{# end column #} {# END GROUP MEMBERSHIPS #} {% endif %} {# endif account #}
{# end row #}
{# panel #} {% endblock %}