{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% load absolute and_op format_amount has_perm_to url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} projects-tasks-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Related task') plural=_('{count} Related tasks') empty=_('Related tasks') icon='task' %} {% endblock %} {% block brick_header_actions %} {% has_perm_to create objects_ctype as creation_perm %}{% has_perm_to change object as edit_perm %} {% brick_header_action id='add' url='projects__create_task'|url:object.id label=_('New task') enabled=creation_perm|and_op:edit_perm %} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Order') %} {% brick_table_column title=_('Name') status='primary' %} {% brick_table_column title=_('Estimated duration (hours)') %} {% brick_table_column title=_('Effective duration (hours)') %} {% brick_table_column title=_('Status') %} {% brick_table_column title=_('Parent tasks') %} {% brick_table_column title=_('Cost') data_type='money' %} {% brick_table_column title=_('Actions') status='action' colspan=2 %} {% endblock %} {% block brick_table_rows %} {% url 'projects__remove_parent_task' as remove_parent_url %} {% for task in page.object_list %}