Fix dashboard dialog tranlations and search bar size

This commit is contained in:
Calvo 2022-12-05 17:20:08 +01:00
parent d91ba1b4e1
commit c5c36dab8b
4 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,7 @@ function initialiceLayout(data) {
var positionGrid = grid.el.getBoundingClientRect();
var gridWidth = positionGrid.width;
var title = data.title;
getCellsLayout();
function getCellsLayout() {
@ -548,7 +548,7 @@ function initialiceLayout(data) {
function addWidgetDialog(id) {
$("#modal-add-widget")
.dialog({
title: "New Widget",
title: data.title,
resizable: false,
modal: true,
overlay: {

View File

@ -427,9 +427,9 @@ table.widget_agent_module tbody tr:first-child > th {
}
li#search_input_widget {
width: 50%;
width: 200px;
position: absolute;
left: 150px;
left: 200px;
top: 2px;
}

View File

@ -77,7 +77,8 @@ echo $output;
class: '<?php echo $class; ?>',
hash: '<?php echo $hash; ?>',
user: '<?php echo $config['id_user']; ?>'
}
},
title: '<?php echo __('New widget'); ?>',
});
// Mode for create new dashboard.

View File

@ -90,7 +90,7 @@ foreach ($widgets as $widget) {
);
$output .= '</div>';
$output .= '<div class="list-widgets-description">';
$output .= $widget['description'];
$output .= __($widget['description']);
$output .= '</div>';
$output .= '</div>';
}