Resource Exportation view

This commit is contained in:
Jose Gonzalez 2023-02-27 09:55:31 +01:00
parent 8fa88a564d
commit 9972b14ccd
2 changed files with 33 additions and 13 deletions

View File

@ -437,18 +437,35 @@ function resource_exportation_extension_main()
); );
$table = new stdClass(); $table = new stdClass();
$table->class = 'databox'; $table->class = 'databox filter-table-adv';
$table->id = 'resource_exportation_table'; $table->id = 'resource_exportation_table';
$table->style = []; $table->style = [];
$table->style[0] = 'width: 0'; $table->style[0] = 'width: 30%';
$table->style[1] = 'width: 0'; $table->style[1] = 'vertical-align: bottom;';
$table->data = []; $table->data = [];
$table->data[0][0] = __('Report'); $table->data[0][] = html_print_label_input_block(
$table->data[0][1] = html_print_select_from_sql('SELECT id_report, name FROM treport', 'report', '', '', '', 0, true); __('Report'),
$table->data[0][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', ['icon' => 'cog', 'mode' => 'secondary mini'], true); html_print_div(
$table->data[1][0] = __('Visual console'); [
$table->data[1][1] = html_print_select_from_sql('SELECT id, name FROM tlayout', 'visual_console', '', '', '', 0, true); 'class' => 'flex-content-left',
$table->data[1][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', ['icon' => 'cog', 'mode' => 'secondary mini'], true); 'content' => html_print_select_from_sql('SELECT id_report, name FROM treport', 'report', '', '', '', 0, true),
],
true
)
);
$table->data[0][] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', ['mode' => 'link'], true);
$table->data[1][] = html_print_label_input_block(
__('Visual console'),
html_print_div(
[
'class' => 'flex-content-left',
'content' => html_print_select_from_sql('SELECT id, name FROM tlayout', 'visual_console', '', '', '', 0, true),
],
true
)
);
$table->data[1][] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', ['mode' => 'link'], true);
if ($hook_enterprise === true) { if ($hook_enterprise === true) {
add_rows_for_enterprise($table->data); add_rows_for_enterprise($table->data);

View File

@ -635,10 +635,6 @@ select:-internal-list-box {
width: 20%; width: 20%;
} }
.w21p {
width: 21%;
}
.w22p { .w22p {
width: 22%; width: 22%;
} }
@ -9193,6 +9189,9 @@ div.stat-win-spinner img {
line-height: 12pt; line-height: 12pt;
} }
.line_height_26 {
line-height: 26px;
}
.line_height_0pt { .line_height_0pt {
line-height: 10pt !important; line-height: 10pt !important;
} }
@ -11331,6 +11330,10 @@ div[role="dialog"] {
z-index: 1115; z-index: 1115;
} }
button[name="go"] {
margin-left: 10px;
display: inline !important;
}
.module_background_state { .module_background_state {
mask: url(../../images/modules@svg.svg) no-repeat center / contain; mask: url(../../images/modules@svg.svg) no-repeat center / contain;
-webkit-mask: url(../../images/modules@svg.svg) no-repeat center / contain; -webkit-mask: url(../../images/modules@svg.svg) no-repeat center / contain;