X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=plugins.php;h=dc3b7a5d855729309d7b6e607a2acfa215a24102;hb=2646345bd9517aafb6b96bfe9cd795ee0f8c8e84;hp=64615aa25563d03878f39442fbf66007c1324074;hpb=bbf886e62dc4746fdbae813cfb80536228f77626;p=timetracker.git diff --git a/plugins.php b/plugins.php index 64615aa2..dc3b7a5d 100644 --- a/plugins.php +++ b/plugins.php @@ -51,7 +51,11 @@ if ($request->isPost()) { $cl_quotas = $request->getParameter('quotas'); $cl_week_view = $request->getParameter('week_view'); $cl_work_units = $request->getParameter('work_units'); + $cl_approval = $request->getParameter('approval'); $cl_timesheets = $request->getParameter('timesheets'); + $cl_templates = $request->getParameter('templates'); + $cl_attachments = $request->getParameter('attachments'); + $cl_work = $request->getParameter('work'); } else { // Note: we get here in get, and also in post when group changes. // Which plugins do we have enabled in currently selected group? @@ -69,7 +73,11 @@ if ($request->isPost()) { $cl_quotas = in_array('mq', $plugins); $cl_week_view = in_array('wv', $plugins); $cl_work_units = in_array('wu', $plugins); + $cl_approval = in_array('ap', $plugins); $cl_timesheets = in_array('ts', $plugins); + $cl_templates = in_array('tp', $plugins); + $cl_attachments = in_array('at', $plugins); + $cl_work = in_array('wk', $plugins); } $form = new Form('pluginsForm'); @@ -88,7 +96,12 @@ $form->addInput(array('type'=>'checkbox','name'=>'locking','value'=>$cl_locking, $form->addInput(array('type'=>'checkbox','name'=>'quotas','value'=>$cl_quotas,'onchange'=>'handlePluginCheckboxes()')); $form->addInput(array('type'=>'checkbox','name'=>'week_view','value'=>$cl_week_view,'onchange'=>'handlePluginCheckboxes()')); $form->addInput(array('type'=>'checkbox','name'=>'work_units','value'=>$cl_work_units,'onchange'=>'handlePluginCheckboxes()')); +$form->addInput(array('type'=>'checkbox','name'=>'approval','value'=>$cl_approval)); $form->addInput(array('type'=>'checkbox','name'=>'timesheets','value'=>$cl_timesheets)); +$form->addInput(array('type'=>'checkbox','name'=>'templates','value'=>$cl_templates,'onchange'=>'handlePluginCheckboxes()')); +$form->addInput(array('type'=>'checkbox','name'=>'attachments','value'=>$cl_attachments,'onchange'=>'handlePluginCheckboxes()')); +$form->addInput(array('type'=>'checkbox','name'=>'work','value'=>$cl_work,'onchange'=>'handlePluginCheckboxes()')); + // Submit button. $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save'))); @@ -123,8 +136,16 @@ if ($request->isPost()) { $plugins .= ',wv'; if ($cl_work_units) $plugins .= ',wu'; + if ($cl_approval) + $plugins .= ',ap'; if ($cl_timesheets) $plugins .= ',ts'; + if ($cl_templates) + $plugins .= ',tp'; + if ($cl_attachments) + $plugins .= ',at'; + if ($cl_work) + $plugins .= ',wk'; // Recycle week view plugin options as they are not configured on this page. $existing_plugins = explode(',', $user->getPlugins());