diff options
author | Francois Ferrand <thetypz@gmail.com> | 2014-06-26 15:52:39 +0200 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2014-07-01 11:16:19 +0200 |
commit | 6d65cfd88343aadc68e4963e66dcdc0688b4346c (patch) | |
tree | 1615e89e40f1068166d2f59d910681813e451c67 /app/Templates/task_edit_description.php | |
parent | 06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f (diff) |
Use popover to edit task and description directly from board.
- Click on 'description' icon opens the 'edit-description' page.
- Edit task and edit description now open in popover, like the assign
dialog.
Diffstat (limited to 'app/Templates/task_edit_description.php')
-rw-r--r-- | app/Templates/task_edit_description.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Templates/task_edit_description.php b/app/Templates/task_edit_description.php index 550dac73..ba0d3887 100644 --- a/app/Templates/task_edit_description.php +++ b/app/Templates/task_edit_description.php @@ -2,7 +2,7 @@ <h2><?= t('Edit the description') ?></h2> </div> -<form method="post" action="?controller=task&action=saveDescription&task_id=<?= $task['id'] ?>" autocomplete="off"> +<form method="post" action="?controller=task&action=saveDescription&task_id=<?= $task['id'] ?>&ajax=<?= $ajax ?>" autocomplete="off"> <?= Helper\form_csrf() ?> @@ -13,6 +13,11 @@ <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> <?= t('or') ?> +<?php if ($ajax): ?> + <a href="?controller=board&action=show&project_id=<?= $task['project_id'] ?>"><?= t('cancel') ?></a> +<?php else: ?> <a href="?controller=task&action=show&task_id=<?= $task['id'] ?>"><?= t('cancel') ?></a> +<?php endif ?> </div> </form> + |