mirror of
https://github.com/itflow-org/itflow
synced 2026-09-05 22:35:12 +00:00
Update badge classes to bg
This commit is contained in:
@@ -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'>×</button>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user