diff options
Diffstat (limited to 'app/Template/board/task.php')
-rw-r--r-- | app/Template/board/task.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Template/board/task.php b/app/Template/board/task.php index 64448acc..d077c773 100644 --- a/app/Template/board/task.php +++ b/app/Template/board/task.php @@ -1,4 +1,8 @@ -<?php if (isset($not_editable)): ?> + + +<?php if ($not_editable): ?> + +<div class="task-board task-<?= $task['color_id'] ?> <?= $task['date_modification'] > time() - $board_highlight_period ? 'task-board-recent' : '' ?>"> <?= Helper\a('#'.$task['id'], 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> @@ -28,6 +32,14 @@ <?php else: ?> +<div class="task-board draggable-item task-<?= $task['color_id'] ?> <?= $task['date_modification'] > time() - $board_highlight_period ? 'task-board-recent' : '' ?>" + data-task-id="<?= $task['id'] ?>" + data-owner-id="<?= $task['owner_id'] ?>" + data-category-id="<?= $task['category_id'] ?>" + data-due-date="<?= $task['date_due'] ?>" + data-task-url="<?= Helper\u('task', 'show', array('task_id' => $task['id'])) ?>" + title="<?= t('View this task') ?>"> + <?= Helper\a('#'.$task['id'], 'task', 'edit', array('task_id' => $task['id']), false, 'task-edit-popover', t('Edit this task')) ?> <?php if ($task['reference']): ?> @@ -114,3 +126,5 @@ </div> </div> <?php endif ?> + +</div>
\ No newline at end of file |