<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.43.4770 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.43.4771 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
<tr><td><b>{$i18n.label.task}</b></td></tr>
<tr><td>{$forms.reportForm.task.control}</td></tr>
{/if}
+{if $show_approved}
+ <tr><td><b>{$i18n.label.approved}</b></td></tr>
+ <tr><td>{$forms.reportForm.approved.control}</td></tr>
+{/if}
{if $show_invoice_dropdown}
<tr><td><b>{$i18n.label.invoice}</b></td></tr>
<tr><td>{$forms.reportForm.invoice.control}</td></tr>
<tr><td><label>{$forms.reportForm.chfinish.control} {$i18n.label.finish}</label></td></tr>
{/if}
<tr><td><label>{$forms.reportForm.chnote.control} {$i18n.label.note}</label></td></tr>
+{if $show_approved}
+ <tr><td><label>{$forms.reportForm.chapproved.control} {$i18n.label.approved}</label></td></tr>
+{/if}
{if $show_invoice_checkbox}
<tr><td><label>{$forms.reportForm.chinvoice.control} {$i18n.label.invoice}</label></td></tr>
{/if}
($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
$user->can('view_all_timesheets') || $user->can('view_client_timesheets'));
+// Add approved / not approved selector.
+$showApproved = $user->isPluginEnabled('ap') &&
+ ($user->can('view_own_reports') || $user->can('view_reports') ||
+ $user->can('view_all_reports') || ($user->can('view_client_reports') && $user->can('view_client_unapproved')));
+if ($showApproved) {
+ $form->addInput(array('type'=>'combobox',
+ 'name'=>'approved',
+ 'style'=>'width: 250px;',
+ 'data'=>array('1'=>$i18n->get('form.reports.include_approved'),'2'=>$i18n->get('form.reports.include_not_approved')),
+ 'empty'=>array(''=>$i18n->get('dropdown.all'))
+ ));
+}
+
// Add user table.
$showUsers = $user->can('view_reports') || $user->can('view_all_reports') || $user->isClient();
$user_list = array();
$form->addInput(array('type'=>'checkbox','name'=>'chunits'));
if ($showTimesheetCheckbox)
$form->addInput(array('type'=>'checkbox','name'=>'chtimesheet'));
+if ($showApproved)
+ $form->addInput(array('type'=>'checkbox','name'=>'chapproved'));
// Add a hidden control for timesheet_user_id (who to generate a timesheet for).
if ($showTimesheetCheckbox)
$smarty->assign('show_project', $showProject);
$smarty->assign('show_task', $showTask);
$smarty->assign('show_billable', $showBillable);
+$smarty->assign('show_approved', $showApproved);
$smarty->assign('show_invoice_dropdown', $showInvoiceDropdown);
$smarty->assign('show_invoice_checkbox', $showInvoiceCheckbox);
$smarty->assign('show_paid_status', $showPaidStatus);