{# This partial template renders a table of organisations, to be populated with rows via an AJAX request. # This extends a generic template for paginated tables. # # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used # to render the table cells with the data from the AJAX request. #} {% extends "tables/table-paginated.html.twig" %} {% use 'tables/partials/organisations/column-info.html.twig' %} {% use 'tables/partials/organisations/column-description.html.twig' %} {% use 'tables/partials/organisations/column-status.html.twig' %} {% use 'tables/partials/organisations/column-member_count.html.twig' %} {% use 'tables/partials/organisations/column-admin_count.html.twig' %} {% use 'tables/partials/organisations/column-join.html.twig' %} {% use 'tables/partials/organisations/column-actions.html.twig' %} {% block table %}
| {{translate('ORGANISATION')}} | {% if 'description' not in table.hidden_columns %}{{translate("DESCRIPTION")}} | {% endif %} {% if hasRole('site-admin') or hasRole('organisations-admin') or (current_user.adminForOrganisations.count > 0) -%}{{translate("STATUS")}} | {% endif -%} {% if checkAccess('view_organisation_members') -%}{{translate("ORGANISATION.MEMBER_COUNT")}} | {{translate("ORGANISATION.ADMIN_COUNT")}} | {% endif -%} {% if 'join' in table.columns %}{{translate("JOIN")}}/{{translate("LEAVE")}} | {% endif %} {% if 'actions' in table.columns %} {% if hasRole('site-admin') or hasRole('organisations-admin') or (current_user.adminForOrganisations.count > 0) -%}{{translate("ACTIONS")}} | {% endif -%} {% endif %}
|---|