mirror of https://github.com/itflow-org/itflow
Reworking ticket status display logic in other places as well
This commit is contained in:
parent
5ee274ae67
commit
4f617f2315
|
|
@ -95,13 +95,11 @@ $total_pages = ceil($total_found_rows / 10);
|
|||
$ticket_closed_at = $row['ticket_closed_at'];
|
||||
|
||||
if($ticket_status == "Open"){
|
||||
$ticket_badge_color = "primary";
|
||||
}elseif($ticket_status == "Resolved"){
|
||||
$ticket_badge_color = "success";
|
||||
}elseif($ticket_status == "Closed"){
|
||||
$ticket_badge_color = "secondary";
|
||||
$ticket_status_display = "<span class='p-2 badge badge-primary'>$ticket_status</span>";
|
||||
}elseif($ticket_status == "Working"){
|
||||
$ticket_status_display = "<span class='p-2 badge badge-success'>$ticket_status</span>";
|
||||
}else{
|
||||
$ticket_badge_color = "info";
|
||||
$ticket_status_display = "<span class='p-2 badge badge-secondary'>$ticket_status</span>";
|
||||
}
|
||||
|
||||
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><?php echo $ticket_subject; ?></td>
|
||||
<td><?php echo $ticket_created_at; ?></td>
|
||||
<td>
|
||||
<span class="p-2 badge badge-<?php echo $ticket_badge_color; ?>">
|
||||
<?php echo $ticket_status; ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><?php echo $ticket_status_display; ?></td>
|
||||
<td><?php echo $ticket_priority_display; ?></td>
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
|
|
|
|||
16
tickets.php
16
tickets.php
|
|
@ -117,13 +117,11 @@
|
|||
$client_name = $row['client_name'];
|
||||
|
||||
if($ticket_status == "Open"){
|
||||
$ticket_badge_color = "primary";
|
||||
}elseif($ticket_status == "Resolved"){
|
||||
$ticket_badge_color = "success";
|
||||
}elseif($ticket_status == "Closed"){
|
||||
$ticket_badge_color = "secondary";
|
||||
$ticket_status_display = "<span class='p-2 badge badge-primary'>$ticket_status</span>";
|
||||
}elseif($ticket_status == "Working"){
|
||||
$ticket_status_display = "<span class='p-2 badge badge-success'>$ticket_status</span>";
|
||||
}else{
|
||||
$ticket_badge_color = "info";
|
||||
$ticket_status_display = "<span class='p-2 badge badge-secondary'>$ticket_status</span>";
|
||||
}
|
||||
|
||||
if($ticket_priority == "High"){
|
||||
|
|
@ -140,11 +138,7 @@
|
|||
|
||||
<tr>
|
||||
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><?php echo $ticket_id; ?></a></td>
|
||||
<td>
|
||||
<span class="p-2 badge badge-<?php echo $ticket_badge_color; ?>">
|
||||
<?php echo $ticket_status; ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><?php echo $ticket_status_display; ?></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><?php echo $ticket_subject; ?></td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue