{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_perms creme_widgets %} {% load and_op format_amount url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} projects-tasks-resources-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Resource assigned to this task') plural=_('{count} Resources assigned to this task') empty=_('Resources assigned to this task') icon='contact' %} {% endblock %} {% block brick_header_actions %} {% if object.is_alive %} {% brick_header_action id='add' url='projects__create_resource'|url:object.id label=_('Create a resource') enabled=user|has_perm_to_change:object %} {% endif %} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Contact') %} {% brick_table_column title=_('Hourly cost') %} {% brick_table_column title=_('Actions') status='action' colspan=2 %} {% endblock %} {% block brick_table_rows %} {% with currency=object.linked_project.currency edit_perm=user|has_perm_to_change:object delete_url='projects__delete_resource'|url %} {% for resource in page.object_list %}