mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 17:18:59 +00:00
Rebuild Admin > Ticket Statuses: list on the standard pattern with In use and Switched off tabs, search, sortable headers, ticket counts linking to the tickets, SLA clock and client-reply columns and drag ordering for the pickers and board; one New/Edit window with badge preview, colour swatches and a description shown on hover across the app; per-status choice of whether a client reply by email or portal moves the ticket back to Open or leaves it; switch off and delete move a status's tickets to a chosen status with ticket history and SLA sync, and clear canned responses that set it; built-in statuses keep their names, stay on and have fixed SLA and reply behaviour enforced server-side; badges use readable text colour; the tickets filter keeps a switched-off status; database 3.4.0 adds ticket_status_description and ticket_status_client_reply; new functions/ticket_status.php
This commit is contained in:
@@ -132,7 +132,6 @@ $money_format = function ($amount) use ($currency_format, $client_currency_code,
|
||||
<?php if ($open_tickets['tickets']) { ?>
|
||||
<div class="list-group list-group-flush">
|
||||
<?php foreach ($open_tickets['tickets'] as $ticket) {
|
||||
$status_color = preg_match('/^#[0-9a-f]{3,8}$/i', (string) $ticket['ticket_status_color']) ? $ticket['ticket_status_color'] : '#6c757d';
|
||||
$last_activity = $ticket['ticket_updated_at'] ?: $ticket['ticket_created_at'];
|
||||
$ticket_who = trim(implode(', ', array_filter([$ticket['contact_name'], $ticket['user_name'] ? 'assigned to ' . $ticket['user_name'] : 'unassigned'])));
|
||||
?>
|
||||
@@ -145,7 +144,7 @@ $money_format = function ($amount) use ($currency_format, $client_currency_code,
|
||||
<?php if ($ticket['sla_breached']) { ?>
|
||||
<span class="badge rounded-pill text-bg-danger" title="Past SLA"><i class="fas fa-stopwatch me-1" aria-hidden="true"></i>SLA</span>
|
||||
<?php } ?>
|
||||
<span class="badge rounded-pill text-white d-none d-sm-inline" style="background-color: <?= $status_color ?>"><?= escapeHtml($ticket['ticket_status_name']) ?></span>
|
||||
<span class="d-none d-sm-inline"><?= ticketStatusHtml($ticket['ticket_status_name'], $ticket['ticket_status_color'], 'detail') ?></span>
|
||||
<span class="small text-body-secondary text-nowrap d-none d-md-inline" title="Last activity <?= escapeHtml($last_activity) ?>"><?= escapeHtml(timeAgo($last_activity)) ?></span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user