group_management styles profiles

This commit is contained in:
fbsanchez 2019-05-29 15:44:51 +02:00
parent 4f27ae1021
commit 4a42756ec6
2 changed files with 14 additions and 3 deletions

View File

@ -516,14 +516,22 @@ if ($tab == 'tree') {
$table = new StdClass();
$table->width = '100%';
$table->class = 'info_table';
$table->headstyle = [];
$table->head = [];
$table->head[0] = __('ID');
$table->headstyle[0] = 'min-width: 100px;';
$table->head[1] = __('Name');
$table->headstyle[1] = 'min-width: 100px;';
$table->head[2] = __('Icon');
$table->headstyle[2] = 'min-width: 100px;';
$table->head[3] = __('Alerts');
$table->headstyle[3] = 'min-width: 100px;';
$table->head[4] = __('Parent');
$table->headstyle[4] = 'min-width: 100px;';
$table->head[5] = __('Description');
$table->headstyle[5] = 'min-width: 100px;';
$table->head[6] = __('Actions');
$table->headstyle[6] = 'min-width: 100px;';
$table->align = [];
$table->align[0] = 'left';
$table->align[2] = 'left';

View File

@ -760,6 +760,9 @@ switch ($action) {
$table->head = [];
$table->align = [];
$table->headstyle = [];
$table->style = [];
$table->align[2] = 'left';
$table->align[3] = 'left';
$table->align[4] = 'left';
@ -775,7 +778,9 @@ switch ($action) {
$table->size[4] = '2%';
$table->size[5] = '2%';
$table->size[6] = '2%';
$table->size['csv'] = '5%';
$table->size[7] = '5%';
$table->headstyle[7] = 'min-width: 30px;';
$table->style[7] = 'text-align: center;';
$next = 4;
// Calculate dinamically the number of the column.
@ -814,7 +819,6 @@ switch ($action) {
// $table->size = array ();
$table->size[$next] = '10%';
$table->align[$next] = 'left';
$table->headstyle[$next] = 'text-align:left;';
}
$columnview = false;
@ -996,7 +1000,6 @@ switch ($action) {
$table->head[$next] = '<span title="Operations">'.__('Op.').'</span>'.html_print_checkbox('all_delete', 0, false, true, false);
$table->size = [];
// $table->size[$next] = '80px';
$table->style[$next] = 'text-align:left;';
}
if ($edit) {