1<?php $url = $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 2 $tpl->action() === 'commcause_edit' ? 'commcause_edit' : 'commcause_add', 3'kid', $tpl->param('kid')) ?> 4<a id="k_"></a> 5<form class="bez_form_blank" action="?id=<?php echo $id ?>" method="POST"> 6 <input type="hidden" name="id" value="<?php echo $id ?>"> 7 <div class="bez_comment bez_comment_form"> 8 <div class="bez_avatar"> 9 <img src="<?php echo DOKU_URL ?>lib/plugins/bez/images/avatar_default.png" /> 10 </div> 11 <div class="bez_text_comment"> 12 <span class="bez_arrow-tip-container"> 13 <span class="bez_arrow-tip"> 14 <span class="bez_arrow-tip-grad"></span> 15 </span> 16 </span> 17 <div class="commcause_content"> 18 <h2> 19 <?php if ($tpl->static_acl('thread_comment', 'type') >= BEZ_PERMISSION_CHANGE): ?> 20 <ul class="bez_tabs"> 21 <li 22 <?php if ( $tpl->value('type') == '' || 23 $tpl->value('type') == '0') echo 'class="active"' ?> 24 <?php if ( $tpl->param('kid') !== '-1' && 25 $tpl->get('thread_comment')->tasks_count > 0) 26 echo 'style="display:none;"'; 27 ?> 28 > 29 <a href="#comment"><?php echo $tpl->getLang('comment_noun') ?></a> 30 </li> 31 <li <?php if($tpl->value('type') === '1' || $tpl->value('type') === '2') echo 'class="active"' ?>> 32 <a href="#cause"><?php echo $tpl->getLang('cause_noun') ?></a> 33 </li> 34 </ul> 35 <?php endif ?> 36 <div class="bez_toolbar"></div> 37 </h2> 38 </div> 39 <div class="bez_content"> 40 <textarea data-validation="required" name="content" class="bez_textarea_content" id="content1"><?php echo $tpl->value('content') ?></textarea> 41 42 <input class="bez_comment_type" type="hidden" name="type" value="0" /> 43 <?php if ($tpl->static_acl('thread_comment', 'type') >= BEZ_PERMISSION_CHANGE): ?> 44 <div class="bez_cause_type"> 45 <div style="margin-bottom: 10px;"> 46 <label for="potential"> 47 <?php echo $tpl->getLang('cause_type') ?>: 48 </label> 49 <label> 50 <input type="radio" name="type" value="1" 51 <?php if($tpl->value('type') == '' || $tpl->value('type') == '0' || $tpl->value('type') == '1') echo 'checked' ?>/> 52 <?php echo $tpl->getLang('cause_type_default') ?> 53 </label> 54 55 <label> 56 <input type="radio" name="type" value="2" 57 <?php if($tpl->value('type') === '2') echo 'checked' ?>/> 58 <?php echo $tpl->getLang('cause_type_potential') ?> 59 </label> 60 </div> 61 </div> 62 <?php endif ?> 63 <input type="submit" value="<?php echo $tpl->param('kid') != '-1' ? $tpl->getLang('correct') : $tpl->getLang('add') ?>"> 64 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id) ?><?php if ($tpl->param('kid') !== '-1') echo '#k'.$tpl->param('kid') ?>" class="bez_delete_button bez_link_button bez_cancel_button"> 65 <?php echo $tpl->getLang('cancel') ?> 66 </a> 67 </div> 68 <?php if ( $tpl->param('kid') !== '-1' && 69 $tpl->get('thread_comment')->tasks_count > 0): ?> 70 <div style="margin-top: 10px; margin-left: 40px"> 71 <?php foreach ($tpl->get('thread_comment')->get_tasks() as $task): ?> 72 <?php $tpl->set('task', $task) ?> 73 <?php if ( $tpl->action() == 'task_edit' && 74 $tpl->param('kid') == $task->id): ?> 75 <?php include 'task_form.php' ?> 76 <?php else: ?> 77 <?php include 'task_box.php' ?> 78 <?php endif ?> 79 <?php endforeach ?> 80 </div> 81 <?php endif ?> 82 </div> 83 </div> 84</form> 85