~ubuntu-branches/ubuntu/vivid/php-horde-nag/vivid

« back to all changes in this revision

Viewing changes to nag-4.1.2/templates/view/task.inc

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2013-10-29 22:01:43 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131029220143-k16crjhccwr56jxq
Tags: 4.1.3-1
New upstream version 4.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<div class="horde-buttonbar">
2
 
  <ul>
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>
6
 
<?php endif ?>
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>
9
 
<?php endif ?>
10
 
<?php endif ?>
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>
13
 
<?php endif ?>
14
 
  </ul>
15
 
</div>
16
 
 
17
 
<div class="header">
18
 
 <span class="smallheader rightFloat"><?php echo implode(' | ', $links) ?></span>
19
 
 <?php echo htmlspecialchars($task->name) ?>
20
 
</div>
21
 
 
22
 
<div class="horde-header">
23
 
<table cellspacing="0" width="100%">
24
 
 <tr>
25
 
  <td class="horde-label"><?php echo _("Assignee") ?>:</td>
26
 
  <td width="100%"><?php echo Nag::formatAssignee($task->assignee, true) ?></td>
27
 
 </tr>
28
 
 <tr>
29
 
  <td class="horde-label"><?php echo _("Private?") ?>:</td>
30
 
  <td>
31
 
   <?php echo $task->private ? Horde::img('checked.png', _("Private")) : Horde::img('unchecked.png', _("Not Private")) ?>
32
 
  </td>
33
 
 </tr>
34
 
 <tr>
35
 
  <td class="horde-label"><?php echo _("Start Date") ?>:</td>
36
 
  <td><?php echo Nag::formatDate($task->start, false) ?></td>
37
 
 </tr>
38
 
 <tr>
39
 
  <td class="horde-label"><?php echo _("Due By") ?>:</td>
40
 
  <td><?php echo Nag::formatDate($task->due) ?></td>
41
 
 </tr>
42
 
 <tr>
43
 
  <td class="horde-label"><?php echo _("Alarm") ?>:</td>
44
 
  <td><?php echo htmlspecialchars($alarm_text) ?></td>
45
 
 </tr>
46
 
 <tr>
47
 
  <td class="horde-label"><?php echo _("Priority") ?>:</td>
48
 
  <td><?php echo Nag::formatPriority($task->priority) ?></td>
49
 
 </tr>
50
 
 <tr>
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>
53
 
 </tr>
54
 
 <tr>
55
 
  <td class="horde-label"><?php echo _("Completed?") ?>:</td>
56
 
  <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) ?>
60
 
   <?php endif ?>
61
 
  </td>
62
 
 </tr>
63
 
 
64
 
<?php if ($task->created): ?>
65
 
 <tr>
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>
68
 
 </tr>
69
 
<?php endif; ?>
70
 
 
71
 
<?php if ($task->modified): ?>
72
 
 <tr>
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>
75
 
 </tr>
76
 
<?php endif; ?>
77
 
</table>
78
 
</div>
79
 
 
80
 
<?php if (strlen($task->desc)): ?>
81
 
<div class="horde-content taskBody">
82
 
  <?php echo $task->getFormattedDescription() ?>
83
 
</div>
84
 
<?php endif; ?>