Update badge classes to bg

This commit is contained in:
johnnyq
2026-08-15 13:00:41 -04:00
parent 73e10e72f2
commit 2375e69f2d
25 changed files with 80 additions and 44 deletions

View File

@@ -157,9 +157,9 @@ header("X-Frame-Options: DENY"); // Legacy
$_SESSION['alert_type'] = "info";
}
?>
<div class="alert alert-<?= $_SESSION['alert_type'] ?>" id="alert">
<div class="alert alert-<?= alertStyleClass($_SESSION['alert_type'] ?? 'success') ?> alert-dismissible" id="alert">
<?= alertMessageHtml($_SESSION['alert_message']) ?>
<button class='close' data-bs-dismiss='alert'>&times;</button>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php

View File

@@ -59,7 +59,7 @@ $invoices_sql = mysqli_query($mysqli, "SELECT invoice_amount, invoice_date, invo
}
if ($invoice_status == "Sent") {
$invoice_badge_color = "warning text-white";
$invoice_badge_color = "warning";
} elseif ($invoice_status == "Viewed") {
$invoice_badge_color = "info";
} elseif ($invoice_status == "Partial") {
@@ -80,7 +80,7 @@ $invoices_sql = mysqli_query($mysqli, "SELECT invoice_amount, invoice_date, invo
<td><?= $invoice_date ?></td>
<td class="<?= $overdue_color ?>"><?= $invoice_due ?></td>
<td>
<span class="p-2 badge badge-<?= $invoice_badge_color ?>">
<span class="p-2 badge text-bg-<?= $invoice_badge_color ?>">
<?= $invoice_status ?>
</span>
</td>

View File

@@ -49,7 +49,7 @@ $quotes_sql = mysqli_query($mysqli, "SELECT quote_amount, quote_date, quote_id,
}
if ($quote_status == "Sent") {
$quote_badge_color = "warning text-white";
$quote_badge_color = "warning";
} elseif ($quote_status == "Viewed") {
$quote_badge_color = "primary";
} elseif ($quote_status == "Accepted") {
@@ -70,7 +70,7 @@ $quotes_sql = mysqli_query($mysqli, "SELECT quote_amount, quote_date, quote_id,
<td><?= numfmt_format_currency($currency_format, $quote_amount, $session_company_currency) ?></td>
<td><?= $quote_date ?></td>
<td>
<span class="p-2 badge badge-<?= $quote_badge_color ?>">
<span class="p-2 badge text-bg-<?= $quote_badge_color ?>">
<?= $quote_status ?>
</span>
</td>

View File

@@ -119,7 +119,7 @@ $balance = $invoice_amounts - $amount_paid;
}
if ($invoice_status == "Sent") {
$invoice_badge_color = "warning text-white";
$invoice_badge_color = "warning";
} elseif ($invoice_status == "Viewed") {
$invoice_badge_color = "info";
} elseif ($invoice_status == "Partial") {