1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2 3<a name="z<?php echo $tpl->get('task')->id ?>"></a> 4<div id="z<?php echo $tpl->get('task')->id ?>" 5 class="bds_block task <?php echo 'state_' . $tpl->get('task')->state ?>"> 6 7<div class="bez_timebox"> 8 <span> 9 <strong><?php echo $tpl->getLang('open') ?>:</strong> 10 <?php echo $tpl->date($tpl->get('task')->create_date) ?> 11 </span> 12 13 <?php if ($tpl->get('task')->state != 'opened'): ?> 14 15 <span> 16 <strong><?php echo $tpl->getLang('task_' . $tpl->get('task')->state) ?>:</strong> 17 <?php echo $tpl->date($tpl->get('task')->close_date) ?> 18 </span> 19 20 <span> 21 <strong><?php echo $tpl->getLang('report_priority') ?>: </strong> 22 <?php echo $tpl->date_diff_days($tpl->get('task')->create_date, $tpl->get('task')->close_date, '%a'); ?> 23 </span> 24 <?php endif ?> 25</div> 26 27<h2> 28 <a href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>"> 29 #z<?php echo $tpl->get('task')->id ?> 30 </a> 31 <?php echo lcfirst($tpl->getLang('task_type_' . $tpl->get('task')->type)) ?> 32 (<?php echo lcfirst($tpl->getLang('task_' . $tpl->get('task')->state)) ?>) 33</h2> 34 35<table class="bez_box_data_table"> 36<tr> 37 <th><?php echo $tpl->getLang('reporter') ?>:</th> 38 <td> 39 <?php echo $tpl->user_name($tpl->get('task')->original_poster) ?> 40 </td> 41 42 <th><?php echo $tpl->getLang('executor') ?>:</th> 43 <td><?php echo $tpl->user_name($tpl->get('task')->assignee) ?></td> 44</tr> 45 46<tr> 47 <th style="white-space: nowrap;"><?php echo $tpl->getLang('plan_date') ?>:</th> 48 <td> 49 <?php echo $tpl->get('task')->plan_date ?><?php if ($tpl->get('task')->all_day_event == '0'): ?>, 50 <?php echo $tpl->get('task')->start_time ?> - <?php echo $tpl->get('task')->finish_time ?> 51 <?php endif ?> 52 </td> 53 54 <th><?php echo $tpl->getLang('task_type') ?>:</th> 55 <td> 56 <?php if ($tpl->get('task')->task_program_id == ''): ?> 57 --- 58 <?php else: ?> 59 <?php echo $tpl->get('task')->task_program_name ?> 60 <?php endif ?> 61 </td> 62</tr> 63 64<tr> 65 <th><?php echo $tpl->getLang('cost') ?>:</th> 66 <td colspan="3"> 67 <?php if ($tpl->get('task')->cost == ''): ?> 68 --- 69 <?php else: ?> 70 <?php echo $tpl->get('task')->cost ?> 71 <?php endif ?> 72 </td> 73</tr> 74 75</table> 76 77<?php echo $tpl->get('task')->content_html ?> 78 79 <div class="bez_buttons"> 80 81 <?php if (count($tpl->get('task')->changable_fields()) > 0): ?> 82 <a class="bds_inline_button" 83 href="<?php 84 if ($tpl->action() == 'thread') { 85 echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'tid', $tpl->get('task')->id, 'action', 'task_edit'); 86 } else { 87 echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'task_edit'); 88 } 89 ?>#z_"> 90 ✎ <?php echo $tpl->getLang('edit') ?> 91 </a> 92 <?php endif ?> 93 94 <a class="bds_inline_button" href=" 95 <?php echo $tpl->mailto($tpl->user_email($tpl->get('task')->assignee), 96 '#z'.$tpl->get('task')->id, 97 $tpl->url('task', 'tid', $tpl->get('task')->id)) ?>"> 98 ✉ <?php echo $tpl->getLang('send_mail') ?> 99 </a> 100 101 <?php if ($tpl->get('task')->task_program_id != '' && 102 $tpl->user_acl_level() >= BEZ_AUTH_USER): ?> 103 <a class="bds_inline_button" 104 href="<?php echo $tpl->url('task_form', 'duplicate', $tpl->get('task')->id, 'task_program_id', $tpl->get('task')->task_program_id) ?>"> 105 ⇲ <?php echo $tpl->getLang('duplicate') ?> 106 </a> 107 <?php endif ?> 108 </div> 109</div>