mirror of https://github.com/MISP/MISP
chg: [workflows:index] UI tweak
parent
8e746960a1
commit
b46c4c7ec5
|
@ -16,8 +16,16 @@ if (is_null($flag)) {
|
|||
$aria = __('No');
|
||||
}
|
||||
|
||||
$classes = ['fa', "fa-$icon"];
|
||||
if (!empty($field['colors'])) {
|
||||
$classes[] = $icon == 'check' ? 'green' : 'grey';
|
||||
} else {
|
||||
$classes[] = 'black';
|
||||
}
|
||||
|
||||
echo sprintf(
|
||||
'<i class="black fa fa-%s" role="img" aria-label="%s"></i>%s',
|
||||
$icon, $aria, $text
|
||||
'<i class="%s" role="img" aria-label="%s"></i>%s',
|
||||
implode(' ', $classes),
|
||||
$aria, $text
|
||||
);
|
||||
?>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
'class' => 'short',
|
||||
'data_path' => 'canAbort',
|
||||
'element' => 'boolean',
|
||||
'colors' => true,
|
||||
],
|
||||
[
|
||||
'name' => __('Trigger Enabled'),
|
||||
|
@ -27,7 +28,8 @@
|
|||
'class' => 'short',
|
||||
'data_path' => 'disabled',
|
||||
'element' => 'booleanOrNA',
|
||||
'boolean_reverse' => true
|
||||
'boolean_reverse' => true,
|
||||
'colors' => true,
|
||||
],
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue