{% extends "im/account_base.html" %} {% load filters %} {% block page.body %}

{% if object.is_member %} {% if object.is_owner %} [ADMINISTRATOR] {% else %} [ ENROLLED ] {% endif %} {% endif %} [ {{object.kindname|upper}} ]

{% if object.is_owner %} [ EDIT GROUP INFO ] {% endif %}

{{ object.desc }}

Homepage url
{% if object.homepage%} {{ object.homepage }} {% else %} Not set yet {% endif %}

DETAILS:

Name
{{object.name}} 
Type
{{object.kindname|capfirst}} 
Issue date:
{{object.issue_date|date:"d/m/Y"}} 
Expiration Date
{{object.expiration_date|date:"d/m/Y"}} 
Modaration
{% if object.moderation_enabled%}Yes{% else %}No{% endif %}
Activated
{% if object.is_enabled %}Yes{% else %}No{% endif %}
Owner
{% for o in object.owner.all %} {% if user == o %} Me {% else%} {{o.realname}} ({{o.email}}) {% endif %} {% endfor %} 

RESOURCES:

{% if object.quota %}
{% for k in object.quota|dkeys %}
{{ k }}
{{ object.quota|lookup:k }} 
{% endfor %}
{% else %}

No policies

{% endif %}
{% with page|concat:sorting as args %} {% with object.members|paginate:args as members%} {% if members %}
{% for p in members.object_list %} {% if p in object.owner.all %} {% else %} {% if p.is_approved %} {% else %} {% endif %} {% endif %} {% endfor %}
MEMBERS:
User Id Name Status
{{p.email}} {{p.realname}}OwnerApprovedPending {% if user in object.owner.all %} Accept Reject {% endif %}
{% else %}

No members yet!

{% endif %} {% endwith %} {% endwith %}
{% if object.is_owner %}
{% csrf_token %}

Enroll more members

{% with addmembers_form as form %} {% include "im/form_render.html" %} {% endwith %}
{% endif %}
{% endblock %}