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

@@ -784,7 +784,7 @@ if ($user_config_dashboard_technical_enable == 1) {
<td><a href="ticket.php?ticket_id=<?= "$ticket_id$has_client" ?>"><?= $ticket_subject ?></a></td>
<td><a href="tickets.php?client_id=<?= $client_id ?>"><strong><?= $client_name ?></strong></a></td>
<td><?= $contact_display ?></td>
<td><span class='p-2 badge rounded-pill badge-<?= $ticket_priority_color ?>'><?= $ticket_priority ?></span></td>
<td><span class='p-2 badge rounded-pill text-bg-<?= $ticket_priority_color ?>'><?= $ticket_priority ?></span></td>
<td><span class='badge rounded-pill text-light p-2' style="background-color: <?= $ticket_status_color ?>"><?= $ticket_status_name ?></span></td>
<td><?= $ticket_updated_at_display ?></td>
</tr>

View File

@@ -349,7 +349,7 @@ if (isset($_GET['invoice_id'])) {
<div class="col-sm-4">
<h3 class="text-end"><strong>INVOICE</strong></h3>
<h5 class="badge badge-<?= $invoice_badge_color ?> p-2 float-end">
<h5 class="badge text-bg-<?= $invoice_badge_color ?> p-2 float-end">
<?= "$invoice_status" ?>
</h5>
<table class="table table-sm table-borderless">

View File

@@ -396,12 +396,12 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if ($invoice_status == 'Paid' || $invoice_status == 'Partial') { ?>
<a class="ajax-modal" href="#" title="View payments"
data-modal-url="modals/invoice/invoice_payments.php?invoice_id=<?= $invoice_id ?>">
<span class="p-2 badge badge-<?= $invoice_badge_color ?>">
<span class="p-2 badge text-bg-<?= $invoice_badge_color ?>">
<?= $invoice_status ?>
</span>
</a>
<?php } else { ?>
<span class="p-2 badge badge-<?= $invoice_badge_color ?>">
<span class="p-2 badge text-bg-<?= $invoice_badge_color ?>">
<?= $invoice_status ?>
</span>
<?php } ?>

View File

@@ -43,7 +43,7 @@ ob_start();
<div class="modal-header bg-dark">
<h5 class="modal-title text-white">
<i class="fa fa-fw fa-credit-card me-2"></i>Payments for <?= "$invoice_prefix$invoice_number" ?>
<span class="p-2 ms-2 badge badge-<?= $invoice_badge_color ?>"><?= $invoice_status ?></span>
<span class="p-2 ms-2 badge text-bg-<?= $invoice_badge_color ?>"><?= $invoice_status ?></span>
</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>

View File

@@ -820,7 +820,7 @@ if (isset($_GET['export_quote_pdf'])) {
//Set Badge color based off of quote status
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") {

View File

@@ -103,7 +103,7 @@ if (isset($_GET['quote_id'])) {
//Set Badge color based off of quote status
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") {
@@ -259,7 +259,7 @@ if (isset($_GET['quote_id'])) {
<div class="col-sm-4">
<h3 class="text-end"><strong>QUOTE</strong></h3>
<h5 class="badge badge-<?= $quote_badge_color ?> p-2 float-end">
<h5 class="badge text-bg-<?= $quote_badge_color ?> p-2 float-end">
<?= "$quote_status" ?>
</h5>
<table class="table table-sm table-borderless">

View File

@@ -171,7 +171,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
}
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") {
@@ -203,7 +203,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<td><?= $quote_expire ?></td>
<td><?= $category_name ?></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

@@ -227,7 +227,7 @@ if (isset($_GET['recurring_invoice_id'])) {
<div class="col-sm-4">
<h3 class="text-end"><strong>RECURRING INVOICE</strong></h3>
<h5 class="badge badge-<?= $status_badge_color ?> p-2 float-end">
<h5 class="badge text-bg-<?= $status_badge_color ?> p-2 float-end">
<?= $status ?>
</h5>
<table class="table table-sm table-borderless">

View File

@@ -245,7 +245,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } ?>
</td>
<td>
<span class="p-2 badge badge-<?= $status_badge_color ?>">
<span class="p-2 badge text-bg-<?= $status_badge_color ?>">
<?= $status ?>
</span>

View File

@@ -573,7 +573,7 @@ if (isset($_GET['ticket_id'])) {
data-modal-url="modals/ticket/ticket_priority.php?id=<?= $ticket_id ?>"
<?php } ?>
>
<span class="badge rounded-pill badge-<?= $ticket_priority_color ?> p-2"><?= $ticket_priority ?></span>
<span class="badge rounded-pill text-bg-<?= $ticket_priority_color ?> p-2"><?= $ticket_priority ?></span>
</a>
</div>
</div>

View File

@@ -153,7 +153,7 @@ $kanban = array_values($statuses);
<?= escapeHtml($item['ticket_prefix']) . intval($item['ticket_number']) ?>
</a>
<span class="badge badge-<?= $ticket_priority_color ?>"><?= $item_priority ?></span>
<span class="badge text-bg-<?= $ticket_priority_color ?>"><?= $item_priority ?></span>
<?php if ($ticket_sla_alert_stage == 2) { ?>
<span class="badge bg-danger" title="SLA breached"><i class="fas fa-fw fa-stopwatch"></i></span>

View File

@@ -391,7 +391,7 @@ if ($tickets) {
data-modal-url="modals/ticket/ticket_priority.php?id=<?= $ticket_id ?>"
<?php } ?>
>
<span class="p-2 badge rounded-pill badge-<?= $ticket_priority_color ?>"><?= $ticket_priority ?></span>
<span class="p-2 badge rounded-pill text-bg-<?= $ticket_priority_color ?>"><?= $ticket_priority ?></span>
</a>
</td>

View File

@@ -519,7 +519,7 @@ if ($account_filter) {
</a>
<?php } ?>
</td>
<td><span class="badge badge-<?= $transaction_badge_color ?>"><?= $transaction_type ?></span></td>
<td><span class="badge text-bg-<?= $transaction_badge_color ?>"><?= $transaction_type ?></span></td>
<td>
<?= $transaction_category_display ?>
<div class="text-secondary"><small><?= truncate($transaction_description, 60) ?></small></div>