This commit is contained in:
Flatlogic Bot 2025-11-23 17:57:45 +00:00
parent 4c2cfe8edd
commit 3de525bbb5

View File

@ -28,15 +28,16 @@
];
function getStatusIndicator($status) {
$icon_path = __DIR__ . '/assets/icons/';
switch ($status) {
case 'submitted':
return '<span class="status-icon submitted">' . file_get_contents("assets/icons/check.svg") . '</span>';
return '<span class="status-icon submitted">' . file_get_contents($icon_path . "check.svg") . '</span>';
case 'pending':
return '<span class="status-icon pending">' . file_get_contents("assets/icons/clock.svg") . '</span>';
return '<span class="status-icon pending">' . file_get_contents($icon_path . "clock.svg") . '</span>';
case 'missed':
return '<span class="status-icon missed">' . file_get_contents("assets/icons/x.svg") . '</span>';
return '<span class="status-icon missed">' . file_get_contents($icon_path . "x.svg") . '</span>';
case 'ooo':
return '<span class="status-icon ooo">' . file_get_contents("assets/icons/palm.svg") . '</span>';
return '<span class="status-icon ooo">' . file_get_contents($icon_path . "palm.svg") . '</span>';
default:
return '';
}
@ -56,7 +57,7 @@
<div class="d-flex justify-content-between align-items-center mb-4 flex-wrap">
<h1 class="h2 team-name"><?php echo htmlspecialchars($team_name); ?></h1>
<button class="btn btn-primary btn-lg record-btn" disabled>
<?php echo file_get_contents("assets/icons/video.svg"); ?>
<?php echo file_get_contents(__DIR__ . "/assets/icons/video.svg"); ?>
Record Update
</button>
</div>