From fe9f3ba707d1caf9348ae17e0566eabd505fbce2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 8 Apr 2017 11:18:58 -0400 Subject: Add assignee restriction for custom project roles (dnd) --- app/Template/column_move_restriction/create.php | 2 ++ app/Template/project_role/show.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'app/Template') diff --git a/app/Template/column_move_restriction/create.php b/app/Template/column_move_restriction/create.php index 852df971..cd9e1bf5 100644 --- a/app/Template/column_move_restriction/create.php +++ b/app/Template/column_move_restriction/create.php @@ -12,6 +12,8 @@ form->label(t('Destination column'), 'dst_column_id') ?> form->select('dst_column_id', $columns, $values, $errors) ?> + form->checkbox('only_assigned', t('Only for tasks assigned to the current user'), 1, isset($values['only_assigned']) && $values['only_assigned'] == 1) ?> + modal->submitButtons() ?>

diff --git a/app/Template/project_role/show.php b/app/Template/project_role/show.php index 5377f7bb..65c9ef11 100644 --- a/app/Template/project_role/show.php +++ b/app/Template/project_role/show.php @@ -80,7 +80,11 @@ text->e($restriction['src_column_title']) ?> / text->e($restriction['dst_column_title']) ?> - + + + + + modal->confirm('trash-o', t('Remove'), 'ColumnMoveRestrictionController', 'confirm', array('project_id' => $project['id'], 'restriction_id' => $restriction['restriction_id'])) ?> -- cgit v1.2.3