#11650 Change style for tooltip
This commit is contained in:
parent
7dcb38f382
commit
083043eaba
|
@ -31,13 +31,14 @@ if (is_ajax()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<h3>'.$template['name'].'</h3>';
|
echo '<h3 style="background-color: #14524f">'.$template['name'].'</h3>';
|
||||||
|
echo html_print_image('images/info.svg', true, ['class' => 'invert_filter']);
|
||||||
|
echo ui_print_alert_template_example($template['id'], true, true, false);
|
||||||
|
echo '<br />';
|
||||||
|
echo '<br />';
|
||||||
echo '<strong>'.__('Type').': </strong>';
|
echo '<strong>'.__('Type').': </strong>';
|
||||||
echo alerts_get_alert_templates_type_name($template['type']);
|
echo alerts_get_alert_templates_type_name($template['type']);
|
||||||
|
|
||||||
echo '<br />';
|
|
||||||
echo ui_print_alert_template_example($template['id'], true);
|
|
||||||
|
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
|
||||||
if ($template['description'] != '') {
|
if ($template['description'] != '') {
|
||||||
|
|
|
@ -1780,11 +1780,14 @@ function ui_print_string_substr($string, $cutoff=16, $return=false, $fontsize=0)
|
||||||
*
|
*
|
||||||
* @return An HTML string if return was true.
|
* @return An HTML string if return was true.
|
||||||
*/
|
*/
|
||||||
function ui_print_alert_template_example($id_alert_template, $return=false, $print_values=true)
|
function ui_print_alert_template_example($id_alert_template, $return=false, $print_values=true, $print_icon=true)
|
||||||
{
|
{
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
$output .= html_print_image('images/information.png', true, ['class' => 'invert_filter']);
|
if ($print_icon === true) {
|
||||||
|
$output .= html_print_image('images/information.png', true, ['class' => 'invert_filter']);
|
||||||
|
}
|
||||||
|
|
||||||
$output .= '<span id="example">';
|
$output .= '<span id="example">';
|
||||||
$template = alerts_get_alert_template($id_alert_template);
|
$template = alerts_get_alert_template($id_alert_template);
|
||||||
|
|
||||||
|
|
|
@ -12562,3 +12562,8 @@ tr[id^="network_component-plugin-snmp-fields-dynamicMacroRow-"] input {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: flex-start !important;
|
justify-content: flex-start !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cluetip-inner > #example {
|
||||||
|
position: absolute;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue