{% if AllowedActions.View == true or AllowedActions.Edit == true or AllowedActions.ManageMembers == true or AllowedActions.Administrate == true %} {% assign countActive = -1 %} {% assign countInactive = -1 %} {% assign countPending = -1 %} {% for member in Group.Members %} {% case member.GroupMemberStatus %} {% when 'Active' %} {% assign countActive = countActive | Plus: 1 %} {% when 'Inactive' %} {% assign countInactive = countInactive | Plus: 1 %} {% when 'Pending' %} {% assign countPending = countPending | Plus: 1 %} {% else %} {% endcase %} {% endfor %} {% for groupLocation in Group.GroupLocations %} {% if groupLocation.Location.GeoPoint != '' %}
{% endif %} {% endfor %}

{{ Group.Name }}

{{ Group.Description }} {% if Group.GroupCapacity != null and Group.GroupType.GroupCapacityRule != 'None' and Group.GroupCapacity != '' %} {% assign warningLevel = 'warning' %} {% if Group.GroupType.GroupCapacityRule == 'Hard' %} {% assign warningLevel = 'danger' %} {% endif %} {% assign activeMemberCount = countActive | Plus:1 %} {% comment %}the counter is zero based{% endcomment %} {% assign overageAmount = activeMemberCount | Minus:Group.GroupCapacity %} {% if overageAmount > 0 %}
This group is over capacity by {{ overageAmount }} {{ 'individual' | PluralizeForQuantity:overageAmount }}.
{% endif %} {% endif %}

Group Details:

{% for attribute in Group.AttributeValues %} {{ attribute.AttributeName }}: {{ attribute.ValueFormatted }}
{% endfor %}

Leaders:

{% if AllowedActions.Edit == true %}
Edit
{% endif %} {% if LinkedPages.RosterPage and LinkedPages.AttendancePage and Group.GroupType.TakesAttendance == 'True' %} {% endif %} {% if LinkedPages.RosterPage == CurrentPage.Path %} {% if countPending > -1 %} {% assign icountPending = 0 %}

Pending Members

{% for member in Group.Members %} {% if member.GroupMemberStatus == 'Pending' %} {% assign loopcycle = icountPending | Modulo:2 %} {% if loopcycle == 0 %}
{% endif %}
{% if LinkedPages.PersonDetailPage %} {% endif %}
{{ member.Person.FullName }} ({{ member.GroupRole.Name }}) {% comment %} --ONLY SHOWING MOBILE NUMBER. THIS IS THE ORIGINAL LAVA. THE NEW LAVA IS AFTER ENDCOMMENT. REQUEST AS PART OF GO LIVE (BEMA ASR 4/3/24) {% for phone in member.Person.PhoneNumbers | Where:'NumberTypeValueId', 12 %}
{% if phone.IsUnlisted != true %}
{{ phone.NumberFormatted }}{% else %}Unlisted{% endif %} ({{ phone.NumberTypeValue.Value }}) {% endfor %} {% endcomment %} {% assign mobilePhone = member.Person.PhoneNumbers | Where:'NumberTypeValueId', 12 | First %} {% if mobilePhone %}
{% if mobilePhone.IsUnlisted != true %} {{ mobilePhone.NumberFormatted }} {% else %} Unlisted {% endif %} ({{ mobilePhone.NumberTypeValue.Value }}) {% endif %} {% comment %} --REMOVING ADDRESS FROM GROUP TOOLBOX. REQUEST AS PART OF GO LIVE (BEMA ASR 4/3/24) {% assign memberAddress = member.Person | Address:'Home' %} {% if memberAddress != '' %}
{{ member.Person | Address:'Home' }} {% endif %} {% endcomment %}
{{ member.Person.Email }}
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %} {% endif %} {% if LinkedPages.PersonDetailPage %} {% endif %}
{% if loopcycle != 0 or icountPending == countPending %}
{% endif %} {% assign icountPending = icountPending | Plus: 1 %} {% endif %} {% endfor %}
{% endif %} {% if countActive > -1 %} {% assign icountActive = 0 %}

Active Members

{% for member in Group.Members %} {% if member.GroupMemberStatus == 'Active' %} {% assign loopcycle = icountActive | Modulo:2 %} {% if loopcycle == 0 %}
{% endif %}
{% if LinkedPages.PersonDetailPage %} {% endif %}
{{ member.Person.FullName }} ({{ member.GroupRole.Name }}) {% comment %} --ONLY SHOWING MOBILE NUMBER. THIS IS THE ORIGINAL LAVA. THE NEW LAVA IS AFTER ENDCOMMENT. REQUEST AS PART OF GO LIVE (BEMA ASR 4/3/24) {% for phone in member.Person.PhoneNumbers | Where:'NumberTypeValueId', 12 %}
{% if phone.IsUnlisted != true %}
{{ phone.NumberFormatted }}{% else %}Unlisted{% endif %} ({{ phone.NumberTypeValue.Value }}) {% endfor %} {% endcomment %} {% assign mobilePhone = member.Person.PhoneNumbers | Where:'NumberTypeValueId', 12 | First %} {% if mobilePhone %}
{% if mobilePhone.IsUnlisted != true %} {{ mobilePhone.NumberFormatted }} {% else %} Unlisted {% endif %} ({{ mobilePhone.NumberTypeValue.Value }}) {% endif %} {% comment %} --REMOVING ADDRESS FROM GROUP TOOLBOX. REQUEST AS PART OF GO LIVE (BEMA ASR 4/3/24) {% assign memberAddress = member.Person | Address:'Home' %} {% if memberAddress != '' %}
{{ member.Person | Address:'Home' }} {% endif %} {% endcomment %}
{{ member.Person.Email }}
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %} {% endif %} {% if LinkedPages.PersonDetailPage %} {% endif %}
{% if loopcycle != 0 or icountActive == countActive %}
{% endif %} {% assign icountActive = icountActive | Plus: 1 %} {% endif %} {% endfor %} {% endif %} {% if countInactive > -1 %} {% assign icountInactive = 0 %}

Inactive Members

{% for member in Group.Members %} {% if member.GroupMemberStatus == 'Inactive' %} {% assign loopcycle = icountInactive | Modulo:2 %} {% if loopcycle == 0 %}
{% endif %}
{% if LinkedPages.PersonDetailPage %} {% endif %}
{{ member.Person.FullName }} ({{ member.GroupRole.Name }}) {% for phone in member.Person.PhoneNumbers %}
{% if phone.IsUnlisted != true %}
{{ phone.NumberFormatted }}{% else %}Unlisted{% endif %} ({{ phone.NumberTypeValue.Value }}) {% endfor %} {% assign memberAddress = member.Person | Address:'Home' %} {% if memberAddress != '' %}
{{ member.Person | Address:'Home' }} {% endif %}
{{ member.Person.Email }}
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %} {% endif %} {% if LinkedPages.PersonDetailPage %} {% endif %}
{% if loopcycle != 0 or icountInactive == countInactive %}
{% endif %} {% assign icountInactive = icountInactive | Plus: 1 %} {% endif %} {% endfor %} {% endif %}
{% comment %} {% if AllowedActions.Edit == true %} Add Member {% endif %} {% if LinkedPages.CommunicationPage %} {% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %} Email Roster {% endif %} {% endif %} {% if LinkedPages.AlternateCommunicationPage %} {% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %} Text Roster {% endif %} {% endif %} {% endcomment %} {% if AllowedActions.Edit == true %} Add Member
{% endif %}

{% endif %} {% else %} {% if Group.Id %}
You do not have permission to view this group.
{% endif %} {% endif %}