{# template to - show the content of a group - edit the group - add members to the group - send mails to a group is used in both Group/editGroup.html.twig and Admin/editGroup.html.twig #} {% block content %}

{{ data.group.groupname }} {# % if (data.isGroupAdmin == 1) or (is_granted('ROLE_GLOBAL_EDITOR')) % #} {% if (data.isGroupAdmin == 1) or is_granted('ROLE_ADMIN') %}   {% endif %}

{% for group in data.ancestors %} {% if loop.last %} {% if group.groupname | length > 20 %} {{ group.groupname | truncate(20) }} {% else %} {{ group.groupname }} {% endif %} {% else %} {% if group.groupname | length > 20 %} {{ group.groupname | truncate(20) }} {% else %} {{ group.groupname }} {% endif %} {% endif %} {% endfor %}

{% if data.subgroups is defined and data.subgroups | length > 0 %} {{ data.group.groupname }} also has the {% if data.subgroups | length >1 %}sub-groups{% else %}sub-group{% endif %} : {% for subgroup in data.subgroups %} {{ subgroup.groupname }} {% if not loop.last %},{% else %}.{% endif %} {% endfor %} {% else %} no subgroups found for this group {% endif %}

{{ data.group.description |raw | nl2br }}

{% for i in ['thead', 'tfoot'] %} <{{ i }}> {% if app.user %} {% else %} {% endif %} {% endfor %}
SelectName Group Role Country (worklocation) FirstName
{# % if is_granted('ROLE_ADMIN') % #} {% if (data.isGroupAdmin == 1) or is_granted('ROLE_ADMIN') %} {% endif %} {# % if is_granted('ROLE_ADMIN') % #} {% if (data.isGroupAdmin == 1) or is_granted('ROLE_ADMIN') %}
{% endif %}
{# this part (modals) is only needed when a user is logged in as admin #} {# % if is_granted('ROLE_ADMIN') % #} {% if (data.isGroupAdmin == 1) or is_granted('ROLE_ADMIN') %} {# not very sure what this does #} {# modal to edit the group settings/info #} {# modal to add a member to the group #} {# modal to edit a member/role #} {% endif %}
{% include "footer.html.twig" %} {% endblock %}