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

You can search for a group by name

{% csrf_token %} {% include "im/form_render.html" %}
{% else %}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
You can create a new group or join to an existing one.

{% endif %} {% if object_list %} {% with object_list|filter_groups:user as d %} {% with d|lookup:'mine' as mine %} {% if mine %}
{% for o in mine %} {% endfor %}
MY GROUPS
Name Type Issue date Expiration date Participants Activation Moderation
{{o.name}} {{o.kind|capfirst}} {{o.issue_date|date:"d/m/Y"}} {{o.expiration_date|date:"d/m/Y"}} {{ o.approved_members|length }}/{{ o.members|length }} {% if o.is_enabled %}Active{% else %}Pending{% endif %} {% if o.moderation_enabled%}Yes{% else %}No{% endif %}
{% endif %} {% endwith %} {% with d|lookup:'other' as other %} {% if other %}
{% for o in other %} {% if user in o.approved_members %} {% else %} {% if user in o.members %} {% else %} {% endif %} {% endif %} {% endfor %}
I PARTICIPATE IN
Name Type Issue date Expiration date Participants Activation Enrollment status  
{{o.name}} {{o.kind|capfirst}} {{o.issue_date|date:"d/m/Y"}} {{o.expiration_date|date:"d/m/Y"}} {{ o.approved_members|length }} {% if o.is_enabled %}Active{% else %}Pending{% endif %} Active PendingNot member
{% endif %} {% endwith %} {% endwith %} {% else %} {% if is_search %}

No groups found!

{% endif %} {% endif %}
{% endblock %}