Add assignee restriction for custom project roles (dnd)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'])) ?>
|
||||
|
||||
Reference in New Issue
Block a user