$dashboardId]; $url = ui_get_full_url( 'index.php?sec=reporting&sec2=operation/dashboard/dashboard' ); $url .= '&'.http_build_query($dataQuery); $form = [ 'id' => 'form-update-dashboard', 'action' => $url, 'onsubmit' => 'return false;', 'class' => 'filter-list-adv', 'enctype' => 'multipart/form-data', 'method' => 'POST', ]; $inputs = [ [ 'arguments' => [ 'type' => 'hidden', 'name' => 'dashboardId', 'value' => $dashboardId, ], ], [ 'label' => __('Name'), 'arguments' => [ 'type' => 'text', 'name' => 'name', 'value' => $arrayDashboard['name'], 'size' => '', 'maxlength' => 35, ], ], [ 'block_id' => 'group', 'direct' => 1, 'hidden' => $private, 'block_content' => [ [ 'label' => __('Group'), 'arguments' => [ 'name' => 'id_group', 'id' => 'id_group', 'type' => 'select_groups', 'returnAllGroup' => $return_all_group, 'selected' => $arrayDashboard['id_group'], 'return' => true, 'required' => true, ], ], ], ], [ 'block_id' => 'private', 'direct' => 1, 'block_content' => [ [ 'label' => __('Private'), 'arguments' => [ 'name' => 'private', 'id' => 'private', 'type' => 'switch', 'value' => $private, 'onclick' => 'showGroup()', ], ], ], ], [ 'label' => __('Favourite'), 'arguments' => [ 'name' => 'favourite', 'id' => 'favourite', 'type' => 'switch', 'value' => $arrayDashboard['active'], ], ], ]; HTML::printForm( [ 'form' => $form, 'inputs' => $inputs, ] );