{# 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 %} {% if hasRole('site-admin') or hasRole('organisations-admin') or (current_user.adminForOrganisations.count > 0) -%} {% endif -%} {% if checkAccess('view_organisation_members') -%} {% endif -%} {% if hasRole('site-admin') or hasRole('organisations-admin') or (current_user.adminForOrganisations.count > 0) -%} {% endif -%}
{{translate('ORGANISATION')}} {{translate("DESCRIPTION")}} {{translate("STATUS")}} {{translate("ORGANISATION.MEMBER_COUNT")}} {{translate("ORGANISATION.ADMIN_COUNT")}} {{translate("JOIN")}}/{{translate("LEAVE")}}{{translate("ACTIONS")}}
{% endblock %} {% block table_cell_templates %} {{ block('table_cell_template_info') }} {{ block('table_cell_template_description') }} {{ block('table_cell_template_status') }} {{ block('table_cell_template_member_count') }} {{ block('table_cell_template_admin_count') }} {{ block('table_cell_template_join') }} {{ block('table_cell_template_actions') }} {% endblock %}