diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/board_index.php | 13 | ||||
-rw-r--r-- | templates/board_public.php | 14 | ||||
-rw-r--r-- | templates/task_edit.php | 3 | ||||
-rw-r--r-- | templates/task_new.php | 3 | ||||
-rw-r--r-- | templates/task_show.php | 5 |
5 files changed, 38 insertions, 0 deletions
diff --git a/templates/board_index.php b/templates/board_index.php index 20862a4b..e6054189 100644 --- a/templates/board_index.php +++ b/templates/board_index.php @@ -74,6 +74,19 @@ <?= Helper\escape($task['title']) ?> </div> + <div class="task-footer"> + <?php if (! empty($task['date_due'])): ?> + <div class="task-date"> + <?= dt('%B %e, %G', $task['date_due']) ?> + </div> + <?php endif ?> + + <?php if (! empty($task['nb_comments'])): ?> + <div class="task-comment-counter"> + <?= $task['nb_comments'] ?> + </div> + <?php endif ?> + </div> </div> </div> <?php endforeach ?> diff --git a/templates/board_public.php b/templates/board_public.php index 339c8035..4c8f7c92 100644 --- a/templates/board_public.php +++ b/templates/board_public.php @@ -40,6 +40,20 @@ <?= Helper\escape($task['title']) ?> </div> + <div class="task-footer"> + <?php if (! empty($task['date_due'])): ?> + <div class="task-date"> + <?= dt('%B %e, %G', $task['date_due']) ?> + </div> + <?php endif ?> + + <?php if (! empty($task['nb_comments'])): ?> + <div class="task-comment-counter"> + <?= $task['nb_comments'] ?> + </div> + <?php endif ?> + </div> + </div> </div> <?php endforeach ?> diff --git a/templates/task_edit.php b/templates/task_edit.php index e400e790..eca4537a 100644 --- a/templates/task_edit.php +++ b/templates/task_edit.php @@ -23,6 +23,9 @@ <?= Helper\form_label(t('Story Points'), 'score') ?> <?= Helper\form_number('score', $values, $errors) ?><br/> + <?= Helper\form_label(t('Due Date'), 'date_due') ?> + <?= Helper\form_text('date_due', $values, $errors, array('placeholder="'.t('month/day/year').'"'), 'form-date') ?><br/> + <?= Helper\form_label(t('Description'), 'description') ?> <?= Helper\form_textarea('description', $values, $errors) ?><br/> <div class="form-help"><a href="http://en.wikipedia.org/wiki/Markdown#Example" target="_blank"><?= t('Write your text in Markdown') ?></a></div> diff --git a/templates/task_new.php b/templates/task_new.php index dd2ba3b4..30e97a85 100644 --- a/templates/task_new.php +++ b/templates/task_new.php @@ -23,6 +23,9 @@ <?= Helper\form_label(t('Story Points'), 'score') ?> <?= Helper\form_number('score', $values, $errors) ?><br/> + <?= Helper\form_label(t('Due Date'), 'date_due') ?> + <?= Helper\form_text('date_due', $values, $errors, array('placeholder="'.t('month/day/year').'"'), 'form-date') ?><br/> + <?= Helper\form_label(t('Description'), 'description') ?> <?= Helper\form_textarea('description', $values, $errors) ?><br/> diff --git a/templates/task_show.php b/templates/task_show.php index 1c5cffaa..59e00b1b 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -20,6 +20,11 @@ <?= dt('Completed on %B %e, %G at %k:%M %p', $task['date_completed']) ?> </li> <?php endif ?> + <?php if ($task['date_due']): ?> + <li> + <strong><?= dt('Must be done before %B %e, %G', $task['date_due']) ?></strong> + </li> + <?php endif ?> <li> <strong> <?php if ($task['username']): ?> |