diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-03 20:11:31 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-03 20:11:31 -0400 |
commit | 59fd3c366cd34cf1be3f20d44b424107c88c030b (patch) | |
tree | b8716b08c85b70f9ac6bc8d68096a418e23d0703 /app/Template/task_duplication/copy.php | |
parent | 67bbb9f49a5105980584c194ba33e69e64a8266e (diff) |
Add close button to modal when there is no destination project
Diffstat (limited to 'app/Template/task_duplication/copy.php')
-rw-r--r-- | app/Template/task_duplication/copy.php | 4 |
1 files changed, 3 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 ?> |