{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_ctype creme_perms creme_widgets %} {% load url from creme_core_tags %} {% block brick_extra_class %} {{block.super}} creme_core-tagged-entities-brick{% if page.paginator.count == 0 %} is-empty{% endif %} {% endblock %} {% block brick_header_title %} {% if ctype %} {% widget_icon ctype=ctype size='brick-table' as ct_icon %} {% brick_header_title title=ctype|ctype_counted_label:page.paginator.count icon=ct_icon %} {% else %} {% brick_header_title title=_('{count} Other entity') plural=_('{count} Other entities') %} {% endif %} {% endblock %} {% block brick_header_actions %} {% if ctype %} {% blocktranslate with models=ctype|ctype_verbose_name_plural asvar help_text %}Remove all the properties related to the «{{models}}» which you are allowed to edit{% endblocktranslate %} {% brick_header_action id='delete' url='creme_core__remove_properties'|url __ptype_id=object.id __ct_id=ctype.id label=_('Remove these properties') help_text=help_text %} {% else %} {% brick_header_action id='delete' url='creme_core__remove_properties'|url __ptype_id=object.id __ct_id=excluded_ctype_ids __exclude_ctypes='on' label=_('Remove these properties') %} {% endif %} {% endblock %} {% block brick_table_head %}{% endblock %} {% block brick_table_rows %} {% with rm_url='creme_core__remove_property'|url %} {% for entity in page.object_list %}