updated iconshelper with new font awesome icons and database references

This commit is contained in:
tp_dhu 2025-04-03 13:23:25 +01:00
parent 88b832dd03
commit 23cad42bc1

View File

@ -3,10 +3,17 @@
class IconsHelper extends \Prefab { class IconsHelper extends \Prefab {
static public $status_icons = [ static public $status_icons = [
'New' => ['fas fa-circle-dot has-text-success', "🆕"], 'open' => ['fas fa-circle-dot has-text-success', "🆕"],
'In Progress' => ['fas fa-circle-play has-text-link', "🔄"], 'in_progress' => ['fas fa-circle-play has-text-link', "🔄"],
'On Hold' => ['fas fa-pause-circle has-text-warning',"⏸️"], 'on_hold' => ['fas fa-pause-circle has-text-warning',"⏸️"],
'Completed' => ['fas fa-check-circle has-text-danger', ""] 'completed' => ['fas fa-check has-text-danger', ""]
];
static public $status_names = [
'open' => 'Open',
'in_progress' => 'In Progress',
'on_hold' => 'On Hold',
'completed' => 'Completed'
]; ];
static public $priority_icons = [ static public $priority_icons = [
@ -38,6 +45,9 @@ class IconsHelper extends \Prefab {
static function do_the_switch($type, $value){ static function do_the_switch($type, $value){
if($value !== null) {
$value = str_replace(' ', '_', strtolower($value));
}
$icon_class = ''; $icon_class = '';
switch(strtolower($type)){ switch(strtolower($type)){
case 'status': case 'status':