{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_perms creme_widgets %} {% load and_op url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} activities-participants-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Participant') plural=_('{count} Participants') empty=verbose_name %} {% endblock %} {% block brick_header_actions %} {% brick_header_action id='link' url='activities__add_participants'|url:object.id label=_('Add contacts') enabled=user|has_perm_to_link:object %} {% endblock %} {% block brick_table_head %}{% endblock %} {% block brick_table_rows %} {% with activity_unlink_perm=user|has_perm_to_unlink:object rm_part_url='activities__remove_participant'|url %} {% for relation in page.object_list %} {% with participant=relation.object_entity %}