From 029538846181309e9135a17f893e874b2e90f72b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 8 Feb 2019 13:53:13 -0800 Subject: Add new actions to reorder tasks by column --- app/Template/board/table_column.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'app/Template/board') diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 765d05a9..5b81d709 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -48,6 +48,27 @@ + 0 && $this->user->hasProjectAccess('TaskModificationController', 'update', $column['project_id'])): ?> +
  • + url->icon('sort-numeric-asc', t('Reorder this column by priority (ASC)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'priority', 'direction' => 'asc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • +
  • + url->icon('sort-numeric-desc', t('Reorder this column by priority (DESC)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'priority', 'direction' => 'desc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • +
  • + url->icon('sort-amount-asc', t('Reorder this column by assignee and priority (ASC)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'assignee-priority', 'direction' => 'asc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • +
  • + url->icon('sort-amount-desc', t('Reorder this column by assignee and priority (DESC)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'assignee-priority', 'direction' => 'desc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • +
  • + url->icon('sort-alpha-asc', t('Reorder this column by assignee (A-Z)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'assignee', 'direction' => 'asc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • +
  • + url->icon('sort-alpha-desc', t('Reorder this column by assignee (Z-A)'), 'TaskReorderController', 'reorderColumn', ['sort' => 'assignee', 'direction' => 'desc', 'project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']]) ?> +
  • + + hook->render('template:board:column:dropdown', array('swimlane' => $swimlane, 'column' => $column)) ?> @@ -81,7 +102,7 @@ - hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> + hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> -- cgit v1.2.3