From: Nik Okuntseff Date: Sat, 3 Feb 2018 13:36:43 +0000 (+0000) Subject: Added Notes config setting on week view config. X-Git-Tag: timetracker_1.19-1~1245 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c017d38a91f026433bea5210840f1a5b2e458125;p=timetracker.git Added Notes config setting on week view config. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 73524656..38bb731b 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - + + + + + diff --git a/week_view.php b/week_view.php index 2c538d9c..7c722da0 100644 --- a/week_view.php +++ b/week_view.php @@ -39,21 +39,25 @@ if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('wv')) { if ($request->isPost()) { $cl_week_note = $request->getParameter('week_note'); $cl_week_list = $request->getParameter('week_list'); + $cl_notes = $request->getParameter('notes'); } else { $plugins = explode(',', $user->plugins); - $cl_week_note = in_array('wn', $plugins); - $cl_week_list = in_array('wl', $plugins); + $cl_week_note = in_array('wvn', $plugins); + $cl_week_list = in_array('wvl', $plugins); + $cl_notes = in_array('wvns', $plugins); } $form = new Form('weekViewForm'); $form->addInput(array('type'=>'checkbox','name'=>'week_note','value'=>$cl_week_note)); $form->addInput(array('type'=>'checkbox','name'=>'week_list','value'=>$cl_week_list)); +$form->addInput(array('type'=>'checkbox','name'=>'notes','value'=>$cl_notes)); $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey('button.save'))); if ($request->isPost()){ - if (!ttTeamHelper::enablePlugin('wn', $cl_week_note) || - !ttTeamHelper::enablePlugin('wl', $cl_week_list)) { + if (!ttTeamHelper::enablePlugin('wvn', $cl_week_note) || + !ttTeamHelper::enablePlugin('wvl', $cl_week_list) || + !ttTeamHelper::enablePlugin('wvns', $cl_notes)) { $err->add($i18n->getKey('error.db')); } }
 Anuko Time Tracker 1.17.10.3870 | Copyright © Anuko | +  Anuko Time Tracker 1.17.10.3871 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/week_view.tpl b/WEB-INF/templates/week_view.tpl index 9cb14f3d..d3253e9d 100644 --- a/WEB-INF/templates/week_view.tpl +++ b/WEB-INF/templates/week_view.tpl @@ -6,7 +6,11 @@
{$forms.weekViewForm.week_list.control} {$i18n.label.what_is_it} {$i18n.label.what_is_it}
{$forms.weekViewForm.notes.control} {$i18n.label.what_is_it}