1<?php if ($tpl->get('task')->thread_id == ''): ?> 2 <div class="bez_comments"> 3 <div class="bez_left_col"> 4<?php endif ?> 5 6<a name="z<?php echo $tpl->get('task')->id ?>"></a> 7<div id="z<?php echo $tpl->get('task')->id ?>" 8 class="bds_block task <?php echo 'state_' . $tpl->get('task')->state ?>"> 9 10<div class="bez_timebox"> 11 <span> 12 <strong><?php echo $tpl->getLang('open') ?>:</strong> 13 <?php echo dformat(strtotime($tpl->get('task')->create_date), '%Y-%m-%d') ?> 14 </span> 15 16 <?php if ($tpl->get('task')->state != 'opened'): ?> 17 18 <span> 19 <strong><?php echo $tpl->getLang('task_' . $tpl->get('task')->state) ?>:</strong> 20 <?php echo dformat(strtotime($tpl->get('task')->close_date), '%Y-%m-%d') ?> 21 </span> 22 23 <span> 24 <strong><?php echo $tpl->getLang('report_priority') ?>: </strong> 25 <?php $dStart = new DateTime($tpl->get('task')->create_date) ?> 26 <?php $dEnd = new DateTime($tpl->get('task')->close_date) ?> 27 <?php echo $dStart->diff($dEnd)->days ?> <?php echo $tpl->getLang('days') ?> 28 </span> 29 <?php endif ?> 30</div> 31 32<h2> 33 <a href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>"> 34 #z<?php echo $tpl->get('task')->id ?> 35 </a> 36 <?php echo lcfirst($tpl->getLang('task_type_' . $tpl->get('task')->type)) ?> 37 (<?php echo lcfirst($tpl->getLang('task_' . $tpl->get('task')->state)) ?>) 38</h2> 39 40<table class="bez_box_data_table"> 41<tr> 42 <th><?php echo $tpl->getLang('reporter') ?>:</th> 43 <td> 44 <?php echo $tpl->user_name($tpl->get('task')->original_poster) ?> 45 </td> 46 47 <th><?php echo $tpl->getLang('executor') ?>:</th> 48 <td><?php echo $tpl->user_name($tpl->get('task')->assignee) ?></td> 49</tr> 50 51<tr> 52 <th style="white-space: nowrap;"><?php echo $tpl->getLang('plan_date') ?>:</th> 53 <td> 54 <?php echo $tpl->get('task')->plan_date ?><?php if ($tpl->get('task')->all_day_event == '0'): ?>, 55 <?php echo $tpl->get('task')->start_time ?> - <?php echo $tpl->get('task')->finish_time ?> 56 <?php endif ?> 57 </td> 58 59 <th><?php echo $tpl->getLang('task_type') ?>:</th> 60 <td> 61 <?php if ($tpl->get('task')->task_program_id == ''): ?> 62 --- 63 <?php else: ?> 64 <?php echo $tpl->get('task')->task_program_name ?> 65 <?php endif ?> 66 </td> 67</tr> 68 69<tr> 70 <th><?php echo $tpl->getLang('cost') ?>:</th> 71 <td colspan="3"> 72 <?php if ($tpl->get('task')->cost == ''): ?> 73 --- 74 <?php else: ?> 75 <?php echo $tpl->get('task')->cost ?> 76 <?php endif ?> 77 </td> 78</tr> 79 80</table> 81 82<?php echo $tpl->get('task')->content_html ?> 83 84 <div class="bez_buttons"> 85 86 <?php if (count($tpl->get('task')->changable_fields()) > 0): ?> 87 <a class="bds_inline_button" 88 href="<?php 89 if ($tpl->action() == 'thread') { 90 echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'tid', $tpl->get('task')->id, 'action', 'task_edit'); 91 } else { 92 echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'task_edit'); 93 } 94 ?>#z_"> 95 ✎ <?php echo $tpl->getLang('edit') ?> 96 </a> 97 <?php endif ?> 98 99 <a class="bds_inline_button" href=" 100 <?php echo $tpl->mailto($tpl->user_email($tpl->get('task')->assignee), 101 '#z'.$tpl->get('task')->id, 102 $tpl->url('task', 'tid', $tpl->get('task')->id)) ?>"> 103 ✉ <?php echo $tpl->getLang('send_mail') ?> 104 </a> 105 106 <?php if ($tpl->get('task')->task_program_id != '' && 107 $tpl->user_acl_level() >= BEZ_AUTH_USER): ?> 108 <a class="bds_inline_button" 109 href="?id=<?php echo $this->id('task_form', 'duplicate', $tpl->get('task')->id, 'task_program_id', $tpl->get('task')->task_program_id) ?>"> 110 ⇲ <?php echo $tpl->getLang('duplicate') ?> 111 </a> 112 <?php endif ?> 113 </div> 114</div> 115 116<?php if ($tpl->get('task')->thread_id == ''): ?> 117</div> 118 119<div class="bez_right_col" style="position:relative; top: -15px;"> 120 121<div class="bez_box bez_subscribe_box"> 122<h2><?php echo $bezlang['norifications'] ?></h2> 123<?php if ($template['task']->is_subscribent()): ?> 124 <a href="?id=<?php echo $this->id('task', 'tid', $template['task']->id, 'action', 'unsubscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome"></span> <?php echo $bezlang['unsubscribe'] ?></a> 125 <p><?php echo $bezlang['subscribed_info'] ?></p> 126<?php else: ?> 127 <a href="?id=<?php echo $this->id('task', 'tid', $template['task']->id, 'action', 'subscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome"></span> <?php echo $bezlang['subscribe'] ?></a> 128 <p><?php echo $bezlang['not_subscribed_info'] ?></p> 129<?php endif ?> 130 131</div> 132 133<div class="bez_box"> 134<h2><?php echo $bezlang['comment_participants'] ?></h2> 135<ul id="issue_participants"> 136<?php foreach ($template['task']->get_participants() as $nick => $participant): ?> 137 <li><a href="<?php echo $helper->mailto($this->model->users->get_user_email($nick), 138 $bezlang['task'].': #z'.$template['task']->id, 139 DOKU_URL . 'doku.php?id='.$this->id('task', 'tid', $template['task']->id)) ?>" title="<?php echo $nick ?>"> 140 <span class="bez_name"><?php echo $participant ?></span> 141 <span class="bez_icons"> 142 <?php if($template['task']->reporter === $nick): ?> 143 <span class="bez_awesome" 144 title="<?php echo $bezlang['reporter'] ?>"> 145  146 </span> 147 <?php endif ?> 148 <?php if($template['task']->executor === $nick): ?> 149 <span class="bez_awesome" 150 title="<?php echo $bezlang['executor'] ?>"> 151  152 </span> 153 <?php endif ?> 154 <?php if($template['task']->is_subscribent($nick)): ?> 155 <span class="bez_awesome" 156 title="<?php echo $bezlang['subscribent'] ?>"> 157  158 </span> 159 <?php endif ?> 160 </span> 161 </a></li> 162<?php endforeach ?> 163</ul> 164 165<?php if ($template['task']->acl_of('subscribents') >= BEZ_PERMISSION_CHANGE): ?> 166 <h2><?php echo $bezlang['issue_invite_header'] ?></h2> 167 <form action="?id=<?php echo $this->id('task', 'tid', $template['task']->id, 'action', 'invite') ?>" method="post" id="bez_invite_users_form"> 168 <div id="bez_invite_users" class="ui-widget"> 169 <select name="client"> 170 <option value="">--- <?php echo $bezlang['select'] ?> ---</option> 171 <?php foreach ($template['users_to_invite'] as $nick => $name): ?> 172 <option value="<?php echo $nick ?>"><?php echo $name ?></option> 173 <?php endforeach ?> 174 </select> 175 </div> 176 <button class="bez_subscribe_button"><?php echo $bezlang['issue_invite_button'] ?></button> 177 </form> 178<?php endif ?> 179 180 181</div> 182 183 184</div> 185 186</div> 187 188<?php endif ?>