{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks sms_tags %} {% load has_perm_to from creme_core_tags %} {% block brick_extra_class %}{{block.super}} sms-messages-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Message') plural=_('{count} Messages') empty=_('Messages') icon='sms' %} {% endblock %} {% comment %} BACKPORT ? {% has_perm_to change object.campaign as has_perm %}
{% endcomment %} {% block brick_table_columns %} {% brick_table_column title=_('Number') status='primary' %} {% brick_table_column title=_('Status') %} {% brick_table_column title=_('Status message') %} {% brick_table_column title=_('Action') status='action' %} {% endblock %} {% block brick_table_rows %} {% has_perm_to change object.campaign as delete_perm %}{% url 'sms__delete_message' as delete_msg_url %} {% for message in page.object_list %} {% endfor %} {% endblock %} {% block brick_table_empty %} {% translate 'No message in this sending' %} {% endblock %} {% comment %} BACKPORT ? {% has_perm_to change object.campaign as has_perm %} {% endcomment %}