{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% load and_op format_amount has_perm_to 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 %}{% has_perm_to change object as has_perm %} {% brick_header_action id='add' url='projects__create_resource'|url:object.id label=_('Create a resource') enabled=has_perm %} {% 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 %} {% has_perm_to change object as has_perm %}{% url 'projects__delete_resource' as delete_url %} {% with currency=object.linked_project.currency %} {% for resource in page.object_list %}