{% extends 'creme_core/bricks/base/paginated-list.html' %} {% load i18n creme_bricks creme_perms creme_widgets %} {% load url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} creme_config-rtypebricks-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Type of relation block created') plural=_('{count} Types of relation block created') empty=_('Types of relation block created') icon='config' %} {% endblock %} {% block brick_header_actions %} {% brick_header_action id='add' url='creme_config__create_rtype_brick'|url label=_('New type of block') enabled=user|has_perm_to_admin:'creme_core' %} {% endblock %} {% block brick_before_content %}
{% widget_icon ctype=ctype size='brick-table' class='rtypebrick-config-type-icon' %} {{ctype}} | {% for cell in cells %}{% widget_join %}{{cell}}{% end_widget_join %}{% empty %}{% translate 'not configured yet' %}{% endfor %} | {% url 'creme_config__edit_cells_of_rtype_brick' brick_type.id ctype.id as edit_cells_url %}{% blocktranslate asvar edit_label %}Edit the configuration for «{{ctype}}»{% endblocktranslate %} {% brick_table_action id='edit' url=edit_cells_url label=edit_label enabled=admin_perm %} | {% blocktranslate asvar delete_label %}Delete the configuration for «{{ctype}}»{% endblocktranslate %} {% brick_table_action id='delete' url='creme_config__delete_cells_of_rtype_brick'|url:brick_type.id __id=ctype.id label=delete_label enabled=admin_perm %} |