1<a id="k<?php echo $template['commcause']->id ?>"></a> 2<div class="bez_comment 3 <?php 4 if ($template['commcause']->type > 0) { 5 echo "bez_cause"; 6 } else { 7 echo 'bez_type_0'; 8 } 9 ?> 10 <?php 11 if ($template['commcause']->reporter == $this->model->users->get_user_full_name($INFO['client'])) { 12 echo "bez_my_comment"; 13 } 14 ?>"> 15 <div class="bez_avatar"> 16 <img src="<?php echo DOKU_URL ?>lib/plugins/bez/images/avatar_default.png" /> 17 </div> 18 <div class="bez_text_comment"> 19 <span class="bez_arrow-tip-container"> 20 <span class="bez_arrow-tip"> 21 <span class="bez_arrow-tip-grad"></span> 22 </span> 23 </span> 24 <div class="commcause_content"> 25 <h2> 26 <strong><?php echo $this->model->users->get_user_full_name($template['commcause']->reporter) ?></strong> 27 <?php if ($template['commcause']->type > 0): ?> 28 <?php echo $bezlang['cause_added'] ?> 29 <?php else: ?> 30 <?php echo $bezlang['comment_added'] ?> 31 <?php endif ?> 32 <?php echo $template['commcause']->date_format($template['commcause']->datetime) ?> 33 34 <div class="bez_comment_buttons"> 35 <?php if ( 36 (!isset($template['no_edit']) || $template['no_edit'] === false) && 37 $template['issue']->state === '0' && 38 ( ($template['commcause']->type === '0' && 39 $template['commcause']->reporter == $INFO['client']) || 40 $template['issue']->get_level() >= 15) 41 ): ?> 42 43 <a class="bez_comment_button" 44 href="?id=<?php echo $this->id('issue', 'id', $template['issue']->id, 'action', 'commcause_edit', 'kid', $template['commcause']->id) ?>#k_"> 45 <span class="bez_awesome"></span> 46 </a> 47 <?php if ($template['commcause']->tasks_count === 0): ?> 48 <a class="bez_comment_button bez_commcause_delete_prompt" 49 data-kid="<?php echo $template['commcause']->id ?>" 50 href="?id=<?php echo $this->id('issue', 'id', $template['issue']->id, 'action', 'commcause_delete', 'kid', $template['commcause']->id) ?>"> 51 <span class="bez_awesome"></span> 52 </a> 53 <?php endif ?> 54 <?php endif ?> 55 </div> 56 57 </h2> 58 <div class="bez_content"> 59 <?php echo $template['commcause']->content_cache; ?> 60 </div> 61 </div> 62 63 <?php if (isset($template['commcauses_tasks'][$template['commcause']->id])): ?> 64 <div style="margin-top: 10px; margin-left: 40px"> 65 <?php foreach ($template['commcauses_tasks'][$template['commcause']->id] as $task): ?> 66 <?php $template['task'] = $task ?> 67 <?php if ( $template['action'] === 'task_edit' && 68 $template['tid'] === $template['task']->id): ?> 69 <?php include 'task_form.php' ?> 70 <?php else: ?> 71 <?php include 'task_box.php' ?> 72 <?php endif ?> 73 <?php endforeach ?> 74 <?php if ($template['issue']->get_level() >= 15): ?> 75 <?php if ( $template['action'] === 'task_commcause_add' && 76 $template['kid'] === $template['commcause']->id): ?> 77 <?php include 'task_form.php' ?> 78 <?php elseif ( (!isset($template['no_edit']) || 79 $template['no_edit'] === false) && 80 $template['commcause']->type !== '0' && 81 $template['issue']->full_state() === '0' && 82 $template['action'] !== 'task_edit'): ?> 83 <div class="bez_second_lv_buttons"> 84 <a href="?id=<?php echo $this->id('issue', 'id', $template['issue']->id, 'kid', $template['commcause']->id, 'action', 'task_commcause_add') ?>#z_" class="bez_subscribe_button"> 85 <span class="bez_awesome"></span> 86 <?php if ($template['commcause']->type === '1'): ?> 87 <?php echo $bezlang['corrective_action_add'] ?> 88 <?php else: ?> 89 <?php echo $bezlang['preventive_action_add'] ?> 90 <?php endif ?> 91 </a> 92 </div> 93 <?php endif ?> 94 <?php endif ?> 95 </div> 96 <?php endif ?> 97 </div> 98</div> 99