1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<div class="bds_block"> 3 4<?php if ($tpl->get('thread')): ?> 5 <?php $url = $tpl->url('thread_report', 'action', 'update', 'id', $tpl->get('thread')->id) ?> 6<?php else: ?> 7 <?php $url = $tpl->url('thread_report', 'action', 'add') ?> 8<?php endif ?> 9 10<form class="bez_form" action="<?php echo $url ?>" method="POST"> 11 12<input type="hidden" name="id" value="bez:threads"> 13 14<?php $class = 'prNone'; ?> 15<?php if ($tpl->get('thread')): ?> 16 <?php $class = 'pr' . $tpl->get('thread')->priority ?> 17<?php endif ?> 18<fieldset id="bds_issue_box" class="bds_form <?php echo $class ?>"> 19 20<?php if ($tpl->param('action') == 'edit'): ?> 21<div class="row"> 22<label for="id"><?php echo $tpl->getLang('id') ?>:</label> 23<span><strong>#<?php echo $tpl->get('thread')->id ?></strong></span> 24</div> 25<?php endif ?> 26 27<?php if ($tpl->static_acl('thread', 'labels') >= BEZ_PERMISSION_CHANGE): ?> 28<div class="row"> 29<label for="label_id"><?php echo $tpl->getLang('type') ?>:</label> 30<span> 31<select name="label_id" id="label_id"> 32<option <?php if ($tpl->value('label_id') == '') echo 'selected' ?> 33 value="">--- <?php echo $tpl->getLang('issue_type_no_specified') ?> ---</option> 34<?php foreach ($tpl->get('labels') as $label): ?> 35 <option <?php if ($tpl->value('label_id') == $label->id) echo 'selected' ?> 36 value="<?php echo $label->id ?>"><?php echo $label->name ?></option> 37<?php endforeach ?> 38</select> 39</span> 40</div> 41<?php endif ?> 42 43<?php if ($tpl->static_acl('thread', 'coordinator') >= BEZ_PERMISSION_CHANGE): ?> 44<div class="row"> 45<label for="coordinator"><?php echo $tpl->getLang('coordinator') ?>:</label> 46<span> 47<select name="coordinator" id="coordinator" data-validation="required"> 48 <option value="">--- <?php echo $tpl->getLang('select') ?>---</option> 49<?php foreach ($tpl->get('users') as $nick => $name): ?> 50 <option <?php if ($tpl->value('coordinator') == $nick) echo 'selected' ?> 51 value="<?php echo $nick ?>"><?php echo $name ?></option> 52<?php endforeach ?> 53</select> 54</span> 55</div> 56<?php endif ?> 57 58<div class="row"> 59<label for="title"><?php echo $tpl->getLang('title') ?>:</label> 60<span> 61<input name="title" id="title" value="<?php echo $tpl->value('title') ?>" data-validation="required"> 62</span> 63</div> 64 65<div class="row"> 66<label for="content"><?php echo $tpl->getLang('description') ?>:</label> 67<span> 68 <div class="bez_description_toolbar"></div> 69 <textarea name="content" id="content" class="edit" data-validation="required"><?php echo $tpl->value('content') ?></textarea> 70</span> 71</div> 72<?php //if ($tpl->action() == 'update'): ?> 73<!-- <div class="row">--> 74<!-- <label for="state">--><?php //echo $bezlang['state'] ?><!--:</label>--> 75<!-- <span>--> 76<!-- <strong>--><?php //echo $template['issue']->state_string ?><!--</strong>--> 77<!-- </span>--> 78<!-- </div>--> 79<!-- --><?php //if ($template['issue']->state !== '0') : ?> 80<!-- <div class="row">--> 81<!-- <label for="opinion">--> 82<!-- --><?php //if ($template['issue']->assigned_tasks_count > 0): ?> 83<!-- --><?php //echo $bezlang['opinion'] ?><!--:--> 84<!-- --><?php //else: ?> 85<!-- --><?php //echo $bezlang['reason'] ?><!--:--> 86<!-- --><?php //endif ?> 87<!-- </label>--> 88<!-- <span>--> 89<!-- <div class="bez_opinion_toolbar"></div>--> 90<!-- <textarea name="opinion" id="opinion" class="edit" data-validation="required">--><?php //echo $value['opinion'] ?><!--</textarea>--> 91<!-- </span>--> 92<!-- </div>--> 93<!-- --><?php //endif ?> 94<?php //endif ?> 95<div class="row"> 96 <label></label> 97 <span style="padding-top:0px;"> 98 <input type="submit" value="<?php echo $tpl->getLang('save') ?>"> 99 100 <?php if ($tpl->get('thread')): ?> 101 <?php $url = $tpl->url('thread', 'id', $tpl->get('thread')->id) ?> 102 <?php else: ?> 103 <?php $url = $tpl->url('threads') ?> 104 <?php endif ?> 105 106 <a href="<?php echo $url ?>" class="bez_delete_button bez_link_button"> 107 <?php echo $tpl->getLang('cancel')?> 108 </a> 109 </span> 110</div> 111</fieldset> 112 113</form> 114</div> 115