diff options
Diffstat (limited to 'app/Template/task_duplication')
-rw-r--r-- | app/Template/task_duplication/copy.php | 4 | ||||
-rw-r--r-- | app/Template/task_duplication/move.php | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Template/task_duplication/copy.php b/app/Template/task_duplication/copy.php index 58b4d837..65cfe4d6 100644 --- a/app/Template/task_duplication/copy.php +++ b/app/Template/task_duplication/copy.php @@ -4,6 +4,9 @@ <?php if (empty($projects_list)): ?> <p class="alert"><?= t('There is no destination project available.') ?></p> + <div class="form-actions"> + <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover btn') ?> + </div> <?php else: ?> <form class="popover-form" method="post" action="<?= $this->url->href('TaskDuplicationController', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> @@ -44,5 +47,4 @@ <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> </div> </form> - <?php endif ?> diff --git a/app/Template/task_duplication/move.php b/app/Template/task_duplication/move.php index 8f01c4b9..717d15e9 100644 --- a/app/Template/task_duplication/move.php +++ b/app/Template/task_duplication/move.php @@ -4,6 +4,9 @@ <?php if (empty($projects_list)): ?> <p class="alert"><?= t('There is no destination project available.') ?></p> + <div class="form-actions"> + <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover btn') ?> + </div> <?php else: ?> <form class="popover-form" method="post" action="<?= $this->url->href('TaskDuplicationController', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off"> |