static function showAddGroupForm($params = array())
{
$condition = "is_task = 1";
// filter groups
if (!Session::haveRight('planning', self::READALL)) {
$condition .= " AND id IN(" . implode(',', $_SESSION['glpigroups']) . ")";
}
echo __("Group") . " : <br>";
Group::dropdown(array('entity' => $_SESSION['glpiactive_entity'], 'entity_sons' => $_SESSION['glpiactive_entity_recursive'], 'condition' => $condition));
echo "<br /><br />";
echo Html::hidden('action', array('value' => 'send_add_group_form'));
echo Html::submit(_sx('button', 'Add'));
}