diff options
Diffstat (limited to 'app/Templates')
-rw-r--r-- | app/Templates/action_index.php | 2 | ||||
-rw-r--r-- | app/Templates/action_params.php | 4 | ||||
-rw-r--r-- | app/Templates/board_task.php | 20 | ||||
-rw-r--r-- | app/Templates/project_layout.php | 2 | ||||
-rw-r--r-- | app/Templates/task_details.php | 5 |
5 files changed, 30 insertions, 3 deletions
diff --git a/app/Templates/action_index.php b/app/Templates/action_index.php index 2647e4a7..30874591 100644 --- a/app/Templates/action_index.php +++ b/app/Templates/action_index.php @@ -33,6 +33,8 @@ <?= Helper\in_list($param['value'], $colors_list) ?> <?php elseif (Helper\contains($param['name'], 'category_id')): ?> <?= Helper\in_list($param['value'], $categories_list) ?> + <?php elseif (Helper\contains($param['name'], 'label')): ?> + <?= Helper\escape($param['value']) ?> <?php endif ?> </strong> </li> diff --git a/app/Templates/action_params.php b/app/Templates/action_params.php index e3417f32..f647149b 100644 --- a/app/Templates/action_params.php +++ b/app/Templates/action_params.php @@ -26,7 +26,11 @@ <?php elseif (Helper\contains($param_name, 'category_id')): ?> <?= Helper\form_label($param_desc, $param_name) ?> <?= Helper\form_select('params['.$param_name.']', $categories_list, $values) ?><br/> + <?php elseif (Helper\contains($param_name, 'label')): ?> + <?= Helper\form_label($param_desc, $param_name) ?> + <?= Helper\form_text('params['.$param_name.']', $values) ?> <?php endif ?> + <?php endforeach ?> <div class="form-actions"> diff --git a/app/Templates/board_task.php b/app/Templates/board_task.php index 4f3546e2..ca854f37 100644 --- a/app/Templates/board_task.php +++ b/app/Templates/board_task.php @@ -1,6 +1,14 @@ <?php if (isset($not_editable)): ?> - <a href="?controller=task&action=readonly&task_id=<?= $task['id'] ?>&token=<?= $project['token'] ?>">#<?= $task['id'] ?></a> - + <a href="?controller=task&action=readonly&task_id=<?= $task['id'] ?>&token=<?= $project['token'] ?>">#<?= $task['id'] ?></a> + + <?php if ($task['reference']): ?> + <span class="task-board-reference" title="<?= t('Reference') ?>"> + (<?= $task['reference'] ?>) + </span> + <?php endif ?> + + - <span class="task-board-user"> <?php if (! empty($task['owner_id'])): ?> @@ -22,7 +30,15 @@ <?php else: ?> - <a class="task-edit-popover" href="?controller=task&action=edit&task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> - + <a class="task-edit-popover" href="?controller=task&action=edit&task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> + + <?php if ($task['reference']): ?> + <span class="task-board-reference" title="<?= t('Reference') ?>"> + (<?= $task['reference'] ?>) + </span> + <?php endif ?> + + - <span class="task-board-user"> <a class="assignee-popover" href="?controller=board&action=changeAssignee&task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>"> diff --git a/app/Templates/project_layout.php b/app/Templates/project_layout.php index c8cc9236..3af77a09 100644 --- a/app/Templates/project_layout.php +++ b/app/Templates/project_layout.php @@ -1,6 +1,6 @@ <section id="main"> <div class="page-header"> - <h2><?= t('Project "%s"', $project['name']) ?></h2> + <h2><?= t('Project "%s"', $project['name']) ?> (#<?= $project['id'] ?>)</h2> <ul> <li><a href="?controller=board&action=show&project_id=<?= $project['id'] ?>"><?= t('Back to the board') ?></a></li> <li><a href="?controller=project"><?= t('All projects') ?></a></li> diff --git a/app/Templates/task_details.php b/app/Templates/task_details.php index 018b88f3..8766beac 100644 --- a/app/Templates/task_details.php +++ b/app/Templates/task_details.php @@ -4,6 +4,11 @@ <span class="task-score"><?= Helper\escape($task['score']) ?></span> <?php endif ?> <ul> + <?php if ($task['reference']): ?> + <li> + <strong><?= t('Reference: %s', $task['reference']) ?></strong> + </li> + <?php endif ?> <li> <?= dt('Created on %B %e, %Y at %k:%M %p', $task['date_creation']) ?> </li> |