1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<?php $url = $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 3 $tpl->param('action') == 'commcause_edit' ? 'commcause_edit' : 'commcause_add', 4'kid', $tpl->param('kid')) ?> 5<a id="k_"></a> 6<form class="bez_form_blank" action="<?php echo $url ?>" method="POST"> 7 <input type="hidden" name="id" value=""> 8 <div class="bez_comment bez_comment_form"> 9 <div class="bez_avatar"> 10 <img src="<?php echo DOKU_URL ?>lib/plugins/bez/images/avatar_default.png" /> 11 </div> 12 <div class="bez_text_comment"> 13 <span class="bez_arrow-tip-container"> 14 <span class="bez_arrow-tip"> 15 <span class="bez_arrow-tip-grad"></span> 16 </span> 17 </span> 18 <div class="commcause_content"> 19 <h2> 20 <?php if ($tpl->get('thread_comment')->acl_of('type') >= BEZ_PERMISSION_CHANGE && 21 $tpl->get('thread')->can_add_causes()): ?> 22 <ul class="bez_tabs"> 23 <li 24 <?php if ( $tpl->value('type') == '' || 25 $tpl->value('type') == 'comment') echo 'class="active"' ?> 26 <?php if ( $tpl->param('kid') !== '' && 27 $tpl->get('thread_comment')->task_count > 0) 28 echo 'style="display:none;"'; 29 ?> 30 > 31 <input style="display: none" type="radio" name="type" value="comment" <?php if($tpl->value('type') == '' || $tpl->value('type') === 'comment') echo 'checked="checked"' ?>> 32 <a href="#comment"><?php echo $tpl->getLang('comment_noun') ?></a> 33 </li> 34 <li <?php if($tpl->value('type') === 'cause') echo 'class="active"' ?>> 35 <input style="display: none" type="radio" name="type" value="cause" <?php if($tpl->value('type') === 'cause') echo 'checked="checked"' ?>> 36 <a href="#cause"><?php echo $tpl->getLang('cause_noun') ?></a> 37 </li> 38 </ul> 39 <?php else: ?> 40 <ul class="bez_tabs"> 41 <li class="active"> 42 <a href="#comment"><?php echo $tpl->getLang('comment_noun') ?></a> 43 </li> 44 </ul> 45 <?php endif ?> 46 </h2> 47 </div> 48 <div class="bez_content"> 49 <div class="bez_toolbar" style="line-height:0"></div> 50 <textarea name="content" class="bez_textarea_content" id="content1"><?php echo $tpl->value('content') ?></textarea> 51 52 <div class="plugin__bez_form_buttons"> 53 54 <div class="plugin__bez_form_buttons_container"> 55 <?php if ($tpl->param('kid') != ''): ?> 56 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id) ?><?php if ($tpl->param('kid') != '') echo '#k'.$tpl->param('kid') ?>" 57 class="plugin__bez_button plugin__bez_button_red"> 58 <?php echo $tpl->getLang('cancel') ?> 59 </a> 60 <?php endif ?> 61 62 <?php if ($tpl->get('thread')->can_add_comments()): ?> 63 <button class="plugin__bez_button plugin__bez_button_green" name="fn" value="comment_add"> 64 <?php echo $tpl->param('kid') != '' ? $tpl->getLang('correct') : $tpl->getLang('add') ?> 65 </button> 66 <?php endif ?> 67 <?php if ($tpl->param('kid') == '' && $tpl->get('thread')->acl_of('state') >= BEZ_PERMISSION_CHANGE): ?> 68 <?php if ($tpl->get('thread')->can_be_closed()): ?> 69 <button class="plugin__bez_button plugin__bez_button_gray" name="fn" value="thread_close"> 70 <?php echo $tpl->getLang('js')['close_issue' . $tpl->get('lang_suffix')] ?> 71 </button> 72 <?php elseif ($tpl->get('thread')->can_be_rejected()): ?> 73 <button class="plugin__bez_button plugin__bez_button_gray" name="fn" value="thread_reject"> 74 <?php echo $tpl->getLang('js')['reject_issue' . $tpl->get('lang_suffix')] ?> 75 </button> 76 <?php elseif ($tpl->get('thread')->can_be_reopened()): ?> 77 <button class="plugin__bez_button plugin__bez_button_gray" name="fn" value="thread_reopen"> 78 <?php echo $tpl->getLang('js')['reopen_issue'. $tpl->get('lang_suffix')] ?> 79 </button> 80 <?php endif ?> 81 <?php endif ?> 82 </div> 83 </div> 84 </div> 85 <?php if ( $tpl->param('kid') != '' && 86 $tpl->get('thread_comment')->task_count > 0): ?> 87 <div style="margin-top: 10px; margin-left: 40px"> 88 <?php foreach ($tpl->get('tasks ' . $tpl->get('thread_comment')->id, array()) as $task): ?> 89 <?php $tpl->set('task', $task) ?> 90 <?php if ( $tpl->param('action') == 'task_edit' && 91 $tpl->param('tid') == $task->id): ?> 92 <?php include 'task_form.php' ?> 93 <?php else: ?> 94 <?php include 'task_box.php' ?> 95 <?php endif ?> 96 <?php endforeach ?> 97 </div> 98 <?php endif ?> 99 </div> 100 </div> 101</form> 102