Reworking ticket status display logic in other places as well
This commit is contained in:
@@ -95,13 +95,11 @@ $total_pages = ceil($total_found_rows / 10);
|
|||||||
$ticket_closed_at = $row['ticket_closed_at'];
|
$ticket_closed_at = $row['ticket_closed_at'];
|
||||||
|
|
||||||
if($ticket_status == "Open"){
|
if($ticket_status == "Open"){
|
||||||
$ticket_badge_color = "primary";
|
$ticket_status_display = "<span class='p-2 badge badge-primary'>$ticket_status</span>";
|
||||||
}elseif($ticket_status == "Resolved"){
|
}elseif($ticket_status == "Working"){
|
||||||
$ticket_badge_color = "success";
|
$ticket_status_display = "<span class='p-2 badge badge-success'>$ticket_status</span>";
|
||||||
}elseif($ticket_status == "Closed"){
|
|
||||||
$ticket_badge_color = "secondary";
|
|
||||||
}else{
|
}else{
|
||||||
$ticket_badge_color = "info";
|
$ticket_status_display = "<span class='p-2 badge badge-secondary'>$ticket_status</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ticket_priority == "High"){
|
if($ticket_priority == "High"){
|
||||||
@@ -120,11 +118,7 @@ $total_pages = ceil($total_found_rows / 10);
|
|||||||
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><span class="badge badge-pill badge-secondary p-3"><?php echo $ticket_number; ?></span></a></td>
|
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><span class="badge badge-pill badge-secondary p-3"><?php echo $ticket_number; ?></span></a></td>
|
||||||
<td><?php echo $ticket_subject; ?></td>
|
<td><?php echo $ticket_subject; ?></td>
|
||||||
<td><?php echo $ticket_created_at; ?></td>
|
<td><?php echo $ticket_created_at; ?></td>
|
||||||
<td>
|
<td><?php echo $ticket_status_display; ?></td>
|
||||||
<span class="p-2 badge badge-<?php echo $ticket_badge_color; ?>">
|
|
||||||
<?php echo $ticket_status; ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td><?php echo $ticket_priority_display; ?></td>
|
<td><?php echo $ticket_priority_display; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
|
|||||||
16
tickets.php
16
tickets.php
@@ -117,13 +117,11 @@
|
|||||||
$client_name = $row['client_name'];
|
$client_name = $row['client_name'];
|
||||||
|
|
||||||
if($ticket_status == "Open"){
|
if($ticket_status == "Open"){
|
||||||
$ticket_badge_color = "primary";
|
$ticket_status_display = "<span class='p-2 badge badge-primary'>$ticket_status</span>";
|
||||||
}elseif($ticket_status == "Resolved"){
|
}elseif($ticket_status == "Working"){
|
||||||
$ticket_badge_color = "success";
|
$ticket_status_display = "<span class='p-2 badge badge-success'>$ticket_status</span>";
|
||||||
}elseif($ticket_status == "Closed"){
|
|
||||||
$ticket_badge_color = "secondary";
|
|
||||||
}else{
|
}else{
|
||||||
$ticket_badge_color = "info";
|
$ticket_status_display = "<span class='p-2 badge badge-secondary'>$ticket_status</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ticket_priority == "High"){
|
if($ticket_priority == "High"){
|
||||||
@@ -140,11 +138,7 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><?php echo $ticket_id; ?></a></td>
|
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><?php echo $ticket_id; ?></a></td>
|
||||||
<td>
|
<td><?php echo $ticket_status_display; ?></td>
|
||||||
<span class="p-2 badge badge-<?php echo $ticket_badge_color; ?>">
|
|
||||||
<?php echo $ticket_status; ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td><?php echo $ticket_created_at; ?></td>
|
<td><?php echo $ticket_created_at; ?></td>
|
||||||
<td><a href="client.php?client_id=<?php echo $client_id; ?>&tab=tickets"><?php echo $client_name; ?></a></td>
|
<td><a href="client.php?client_id=<?php echo $client_id; ?>&tab=tickets"><?php echo $client_name; ?></a></td>
|
||||||
<td><?php echo $ticket_subject; ?></td>
|
<td><?php echo $ticket_subject; ?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user