{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_perms creme_widgets sms_tags %} {% load url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} sms-contacts-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Contact-recipient') plural=_('{count} Contact-recipients') empty=verbose_name icon='contact' %} {% endblock %} {% block brick_header_actions %} {% with edit_perm=user|has_perm_to_change:object %} {% brick_header_action id='link' url='sms__add_contacts_to_mlist_from_filter'|url:object.id label=_('Add from a filter') enabled=edit_perm %} {% brick_header_action id='link' url='sms__add_contacts_to_mlist'|url:object.id label=_('Add contacts') enabled=edit_perm %} {% endwith %} {% endblock %} {% block brick_table_columns %} {% if not field_hidden %} {% brick_table_column title=_('Number') status='primary' %} {% brick_table_column title=_('Action') status='action' %} {% endif %} {% endblock %} {% block brick_table_rows %} {% if field_hidden %}