{% extends "useradmin/base.html" %} {% load crispy_forms_tags %} {% block content %} {% if account %}

Editing account "{{ account.name }}" (#{{ account.id }})

{% else %}

Create new account

{% endif %} {% comment %} ACTION BUTTONS {% endcomment %}
Back to account list
{% 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 %} {% crispy org_form %} {% endif %}
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 %} {% crispy group_form %} {% endif %}
{% endif %}
{% endblock %}