{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% load has_perm_to url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} graphs-orbital-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Peripheral type of relationship') plural=_('{count} Peripheral types of relationship') empty=verbose_name icon='graph' %} {% endblock %} {% block brick_header_actions %} {% has_perm_to change object as has_perm %} {% brick_header_action id='link' url='graphs__add_rtypes'|url:object.id label=_('Add some types of relationship') enabled=has_perm %} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Type of relation') status='primary' %} {% brick_table_column title=_('Action') status='action' %} {% endblock %} {% block brick_table_rows %} {% has_perm_to change object as has_perm %}{% url 'graphs__remove_rtype' object.id as remove_rtype_url %} {% for rtype in page.object_list %} {{rtype}} {% brick_table_action id='delete' url=remove_rtype_url __id=rtype.pk label=_('Remove this type') icon='unlink' enabled=has_perm %} {% endfor %} {% endblock %} {% block brick_table_empty %} {% translate "No type of relation for the moment" %} {% endblock %}