'', 'label' => __('Monitoring'), ], [ 'link' => '', 'label' => __('Clusters'), ], ] ); if (empty($message) === false) { echo $message; } // Datatables list. try { $columns = [ 'name', 'description', 'group', 'type', 'nodes', 'known_status', [ 'text' => 'options', 'class' => 'table_action_buttons', ], ]; $column_names = [ __('Name'), __('Description'), __('Group'), __('Type'), __('Nodes'), __('Status'), __('Options'), ]; $tableId = 'clusters'; // Load datatables user interface. ui_print_datatable( [ 'id' => $tableId, 'class' => 'info_table', 'style' => 'width: 99%', 'columns' => $columns, 'column_names' => $column_names, 'ajax_url' => $model->ajaxController, 'ajax_data' => ['method' => 'draw'], 'no_sortable_columns' => [-1], 'order' => [ 'field' => 'known_status', 'direction' => 'asc', ], 'search_button_class' => 'sub filter float-right', 'form' => [ 'inputs' => [ [ 'label' => __('Filter group'), 'name' => 'id_group', 'returnAllGroup' => true, 'privilege' => 'AR', 'type' => 'select_groups', 'return' => true, 'size' => '250px', ], [ 'label' => __('Free search'), 'type' => 'text', 'class' => 'mw250px', 'id' => 'free_search', 'name' => 'free_search', ], ], ], 'filter_main_class' => 'box-flat white_table_graph fixed_filter_bar', ] ); } catch (Exception $e) { echo $e->getMessage(); } if (check_acl($config['id_user'], 0, 'AW')) { $buttons[] = html_print_submit_button( __('New cluster'), 'submit', false, [ 'class' => 'sub ok', 'icon' => 'next', ], true ); echo '
'; }