fixed visual error on Open

This commit is contained in:
marcos.alconada 2019-08-20 13:07:47 +02:00
parent 13d8c065e6
commit a77a72cea5

View File

@ -804,7 +804,7 @@ $table_adv_options .= '
'.$table_adv_gis.$table_adv_agent_icon.$table_adv_url.$table_adv_quiet.$table_adv_status.$table_adv_remote.$table_adv_safe.'
</div>';
if (enterprise_installed()) {
echo '<div class="ui_toggle">';
ui_toggle(
$table_adv_options,
@ -817,7 +817,7 @@ ui_toggle(
'no-border flex'
);
echo '</div>';
}
$table = new stdClass();
$table->width = '100%';
@ -931,6 +931,7 @@ foreach ($fields as $field) {
$i += 2;
}
if (enterprise_installed()) {
if (!empty($fields)) {
echo '<div class="ui_toggle">';
ui_toggle(
@ -945,6 +946,33 @@ if (!empty($fields)) {
);
echo '</div>';
}
} else {
echo '<div class="ui_toggle">';
ui_toggle(
$table_adv_options,
__('Advanced options'),
'',
'',
true,
false,
'white_box white_box_opened',
'no-border flex'
);
if (!empty($fields)) {
ui_toggle(
html_print_table($table, true),
__('Custom fields'),
'',
'',
true,
false,
'white_box white_box_opened',
'no-border'
);
}
echo '</div>';
}
echo '<div class="action-buttons" style="display: flex; justify-content: flex-end; align-items: center; width: '.$table->width.'">';