1
<div class="horde-buttonbar">
3
<?php if ($share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)): ?>
4
<?php if (!$task->completed): ?>
5
<li class="horde-icon"><?php echo Horde::widget(array('url' => $task->complete_link, 'title' => _("_Complete"), 'class' => 'nag-complete')) ?></li>
7
<?php if (!$task->private || $task->owner == $GLOBALS['registry']->getAuth()): ?>
8
<li class="horde-icon"><?php echo Horde::widget(array('url' => $taskurl->add('actionID', 'modify_task'), 'title' => _("_Edit"), 'class' => 'nag-edit')) ?></li>
11
<?php if ($share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::DELETE)): ?>
12
<li class="horde-icon"><?php echo Horde::widget(array('url' => $taskurl->add('actionID', 'delete_task'), 'onclick' => $prefs->getValue('delete_opt') ? 'return window.confirm(\'' . addslashes(_("Really delete this task?")) . '\');' : '', 'title' => _("_Delete"), 'class' => 'nag-delete')) ?></li>
18
<span class="smallheader rightFloat"><?php echo implode(' | ', $links) ?></span>
19
<?php echo htmlspecialchars($task->name) ?>
22
<div class="horde-header">
23
<table cellspacing="0" width="100%">
25
<td class="horde-label"><?php echo _("Assignee") ?>:</td>
26
<td width="100%"><?php echo Nag::formatAssignee($task->assignee, true) ?></td>
29
<td class="horde-label"><?php echo _("Private?") ?>:</td>
31
<?php echo $task->private ? Horde::img('checked.png', _("Private")) : Horde::img('unchecked.png', _("Not Private")) ?>
35
<td class="horde-label"><?php echo _("Start Date") ?>:</td>
36
<td><?php echo Nag::formatDate($task->start, false) ?></td>
39
<td class="horde-label"><?php echo _("Due By") ?>:</td>
40
<td><?php echo Nag::formatDate($task->due) ?></td>
43
<td class="horde-label"><?php echo _("Alarm") ?>:</td>
44
<td><?php echo htmlspecialchars($alarm_text) ?></td>
47
<td class="horde-label"><?php echo _("Priority") ?>:</td>
48
<td><?php echo Nag::formatPriority($task->priority) ?></td>
51
<td class="horde-label"><?php echo _("Estimated Time") ?>:</td>
52
<td><?php echo htmlspecialchars($task->estimate); if ($task->hasSubTasks()) echo htmlspecialchars(sprintf(_(" (%s including sub-tasks)"), $task->estimation())) ?></td>
55
<td class="horde-label"><?php echo _("Completed?") ?>:</td>
57
<?php echo Nag::formatCompletion($task->completed) ?>
58
<?php if ($task->completed_date): ?>
59
<?php echo strftime($prefs->getValue('date_format'), $task->completed_date) . ' ' . date($prefs->getValue('twentyFour') ? 'G:i' : 'g:i a', $task->completed_date) ?>
64
<?php if ($task->created): ?>
66
<td class="horde-label"><?php echo _("Created") ?>:</td>
67
<td><?php echo $task->created->strftime($prefs->getValue('date_format')) . ' ' . $task->created->format($prefs->getValue('twentyFour') ? 'G:i' : 'g:i a') . ' ' . htmlspecialchars($task->createdby) ?></td>
71
<?php if ($task->modified): ?>
73
<td class="horde-label"><?php echo _("Last Modified") ?>:</td>
74
<td><?php echo $task->modified->strftime($prefs->getValue('date_format')) . ' ' . $task->modified->format($prefs->getValue('twentyFour') ? 'G:i' : 'g:i a') . ' ' . htmlspecialchars($task->modifiedby) ?></td>
80
<?php if (strlen($task->desc)): ?>
81
<div class="horde-content taskBody">
82
<?php echo $task->getFormattedDescription() ?>