diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-04-08 11:18:58 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-04-08 11:18:58 -0400 |
commit | fe9f3ba707d1caf9348ae17e0566eabd505fbce2 (patch) | |
tree | dff1f604fb6c9461642847c4b6684327806e0c8d /app/Template | |
parent | 9a8c6d6493191a09720a634c58c230dba1cafeeb (diff) |
Add assignee restriction for custom project roles (dnd)
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/column_move_restriction/create.php | 2 | ||||
-rw-r--r-- | app/Template/project_role/show.php | 6 |
2 files changed, 7 insertions, 1 deletions
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 @@ <?= $this->form->label(t('Destination column'), 'dst_column_id') ?> <?= $this->form->select('dst_column_id', $columns, $values, $errors) ?> + <?= $this->form->checkbox('only_assigned', t('Only for tasks assigned to the current user'), 1, isset($values['only_assigned']) && $values['only_assigned'] == 1) ?> + <?= $this->modal->submitButtons() ?> <p class="alert alert-info"><?= t('People belonging to this role will be able to move tasks only between the source and the destination column.') ?></p> 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 @@ <i class="fa fa-check-circle-o fa-fw" aria-hidden="true"></i> <strong><?= $this->text->e($restriction['src_column_title']) ?> / <?= $this->text->e($restriction['dst_column_title']) ?></strong> <i class="fa fa-arrow-right fa-fw" aria-hidden="true"></i> - <?= t('Only moving task between those columns is permitted') ?> + <?php if ($restriction['only_assigned'] == 1): ?> + <?= t('Only moving task between those columns is permitted for tasks assigned to the current user') ?> + <?php else: ?> + <?= t('Only moving task between those columns is permitted') ?> + <?php endif ?> </td> <td> <?= $this->modal->confirm('trash-o', t('Remove'), 'ColumnMoveRestrictionController', 'confirm', array('project_id' => $project['id'], 'restriction_id' => $restriction['restriction_id'])) ?> |