Lines Matching refs:tpl
1 <?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?>
3 <div id="z<?php echo $tpl->get('task')->id ?>"
6 if($tpl->get('task')->state == 'opened') {
7 echo 'priority_' . $tpl->get('task')->priority;
13 <strong><?php echo $tpl->getLang('open') ?>:</strong>
14 <?php echo $tpl->date($tpl->get('task')->create_date) ?>
17 <?php if ($tpl->get('task')->state != 'opened'): ?>
20 <strong><?php echo $tpl->getLang('task_' . $tpl->get('task')->state) ?>:</strong>
21 <?php echo $tpl->date($tpl->get('task')->close_date) ?>
25 <strong><?php echo $tpl->getLang('report_priority') ?>: </strong>
26 <?php echo $tpl->date_diff_days($tpl->get('task')->create_date, $tpl->get('task')->close_date, '%a'); ?>
32 <a href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>">
33 #z<?php echo $tpl->get('task')->id ?>
35 <?php if ($tpl->get('task')->thread_id == '' || $tpl->get('task')->thread->type != 'project'): ?>
36 <?php echo lcfirst($tpl->getLang('task_type_' . $tpl->get('task')->type)) ?>
38 (<?php echo lcfirst($tpl->getLang('task_' . $tpl->get('task')->state)) ?>)
40 <?php if ($tpl->get('task')->private == '1'): ?>
47 <th><?php echo $tpl->getLang('reporter') ?>:</th>
49 <?php echo $tpl->user_name($tpl->get('task')->original_poster) ?>
52 <th><?php echo $tpl->getLang('executor') ?>:</th>
53 <td><?php echo $tpl->user_name($tpl->get('task')->assignee) ?></td>
57 <th style="white-space: nowrap;"><?php echo $tpl->getLang('plan_date') ?>:</th>
59 <?php echo $tpl->get('task')->plan_date ?><?php if ($tpl->get('task')->all_day_event == '0'): ?>,
60 <?php echo $tpl->get('task')->start_time ?> - <?php echo $tpl->get('task')->finish_time ?>
64 <th><?php echo $tpl->getLang('task_type') ?>:</th>
66 <?php if ($tpl->get('task')->task_program_id == ''): ?>
69 <?php echo $tpl->get('task')->task_program_name ?>
75 <th><?php echo $tpl->getLang('cost') ?>:</th>
77 <?php if ($tpl->get('task')->cost == ''): ?>
80 <?php echo $tpl->get('task')->cost ?>
87 <?php echo $tpl->get('task')->content_html ?>
88 <?php if (!$tpl->get('no_actions')): ?>
89 <?php if ($tpl->action() == 'thread'): ?>
91 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>">
92 <?php echo $tpl->getLang('comments') ?>:
93 <?php echo $tpl->factory('task_comment')->count(array('task_id' => $tpl->get('task')->id)) ?>
98 <?php if ($tpl->get('task')->acl_of('thread_id') >= BEZ_PERMISSION_CHANGE): ?>
99 <?php if ($tpl->get('task')->thread_id == ''): ?>
101 action="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'pin') ?>"
104 <?php echo $tpl->getLang('thread_id') ?>:
106 value="<?php echo $tpl->value('thread_id') ?>" />
108 <?php echo $tpl->getLang('pin_button') ?>
112 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>#zk_">
114 <?php echo $tpl->getLang('pin_to_the_issue') ?>
119 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'unpin') ?>"
120 onclick="return confirm('<?php echo $tpl->getLang('confirm_unpin_task') ?>')">
122 <?php echo $tpl->getLang('unpin_from_the_issue') ?>
127 <?php if ($tpl->get('task')->acl_of('state') >= BEZ_PERMISSION_CHANGE): ?>
130 href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id) ?>#zk_">
131 <?php if ($tpl->get('task')->state == 'opened'): ?>
132 ↬ <?php echo $tpl->getLang('js')['do_task'] ?>
134 ↻ <?php echo $tpl->getLang('js')['reopen_task'] ?>
139 <?php if (count($tpl->get('task')->changable_fields(
144 if ($tpl->action() == 'thread') {
145 echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'tid', $tpl->get('task')->id, 'action', 'task_edit');
147 echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'task_edit');
150 ✎ <?php echo $tpl->getLang('edit') ?>
154 <?php if ($tpl->get('task')->acl_of('id') >= BEZ_PERMISSION_DELETE): ?>
157 if ($tpl->action() == 'thread') {
158 echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'tid', $tpl->get('task')->id, 'action', 'task_delete');
160 echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'task_delete');
163 ✕ <?php echo $tpl->getLang('delete') ?>
168 <?php echo $tpl->mailto($tpl->user_email($tpl->get('task')->assignee),
169 '#z'.$tpl->get('task')->id,
170 $tpl->url('task', 'tid', $tpl->get('task')->id)) ?>">
171 ✉ <?php echo $tpl->getLang('send_mail') ?>
174 <?php if ($tpl->get('task')->task_program_id != '' &&
175 $tpl->factory('task')->permission() >= BEZ_TABLE_PERMISSION_INSERT): ?>
177 href="<?php echo $tpl->url('task_form', 'duplicate', $tpl->get('task')->id, 'task_program_id', $tpl->get('task')->task_program_id) ?>">
178 ⇲ <?php echo $tpl->getLang('duplicate') ?>