]> wagnertech.de Git - timetracker.git/blobdiff - timesheets.php
Added Create timesheet button on report.php.
[timetracker.git] / timesheets.php
index fb513bee8933cfa86f3c0757e4ce34ae6d926966..b2c64e636a0c9c57da6fde58c572a8a6b5a8f93b 100644 (file)
@@ -40,15 +40,15 @@ if (!(ttAccessAllowed('view_own_timesheets') ||
   exit();
 }
 
-if (!$user->isPluginEnabled('ts_NEVER_ENABLED')) { // Work in progress...
+if (!$user->isPluginEnabled('ts')) {
   header('Location: feature_disabled.php');
   exit();
 }
 // End of access checks.
 
-//$invoices = ttGroupHelper::getActiveInvoices();
+$timesheets = $user->getTimesheets();
 
-//$smarty->assign('invoices', $invoices);
+$smarty->assign('timesheets', $timesheets);
 $smarty->assign('title', $i18n->get('title.timesheets'));
-$smarty->assign('content_page_name', 'invoices.tpl'); // TODO: fix this, too.
+$smarty->assign('content_page_name', 'timesheets.tpl');
 $smarty->display('index.tpl');