Lists on a phone: Tickets, Credentials, Assets and Contacts show each row as a card below 768px with the tick box, name and menu across the top and every other column labelled under it, the pickers still working and the column names a row of sort links; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-29 13:51:21 -05:00
parent f777bb212c
commit 6f1c759150
6 changed files with 139 additions and 42 deletions

View File

@@ -20,6 +20,7 @@ Update from Maintenance > Update as usual - this release has three database chan
- Markdown files: the menu beside Upload on a client's Files has Import Markdown Files, which makes a document from each .md file picked, named by the heading it starts with or its file name. A document's page has a Markdown button beside PDF, which downloads it as a .md file - rich text documents too.
- Markdown pasted into a document's rich text editor - copied from GitHub, VS Code, Obsidian or an AI chat - goes in as formatting. Ctrl+Shift+V pastes it as it is.
- A document's page is easier to read: headings in proportion to the text with room between sections, and tables, code and quotes that look part of it. Under its name are its folder, its template, Markdown when it's written in it, and its review - due, or when it's next due - whose menu has Mark Reviewed and how often. The buttons are Edit, Share and Export (PDF, Markdown or Print), with the rest in the ⋮ menu, now including Template. Beside it, Contents marks the section you're reading, and Linked, Versions and History are tabs of one card: Linked shows each kind of record with its count, opening to the list.
- Lists on a phone: Tickets, Credentials, Assets and Contacts (and Contacts' portal invites) show each row as a card instead of a table cut off at the edge of the screen - its name with the tick box and ⋮ menu across the top, then every other column with its label: a ticket's client, status, priority, agent, due date and last activity, a credential's login and what it's for, an asset's type, model, IP, location and status, a contact's phone and email. Status, priority, agent and location still change with a tap, and the column names above the cards sort the list.
- Documents and articles read outside ITFlow look like a document's page: in the client portal (a document, and a Help article), on a shared link and on the public help center, headings are in proportion to the text, tables, code and quotes look part of it, and a picture shown smaller than it is opens full size when clicked. A long one - three headings or more - has its Contents beside it, in view as you scroll and marking the section being read, or above it on a phone. Picking a heading in Contents marks that one, not the one just under it - on a document's page in ITFlow too.
- A document's PDF, and a Knowledge Base article's, look like your invoices and the documentation PDF: your logo and company details at the top, then its name with the client, its folder (an article's category) and when it was last updated and by whom, and its summary. Each later page has the client and the name at the top, and every page your company, Confidential (Knowledge Base for an article) and the date at the foot, with the page number. Tables have lines, code is shaded, a checklist shows its boxes, symbols such as ✓ and → show, and a document with headings has them as bookmarks beside the PDF.
- Pictures in tickets are kept as files: a screenshot pasted or dropped into a ticket, a reply or a note - by your team, in the client portal or through the API - and the pictures in a client's email are kept with the ticket as files instead of inside its text. A ticket full of screenshots opens quickly, and so do the tickets list and the client portal. Pictures show where they were put and stay out of the ticket's list of files, and emails carry them as before.
@@ -53,6 +54,7 @@ Update from Maintenance > Update as usual - this release has three database chan
- A picture that can't be saved - the folder not writable, the attachment row not going in - stays as data in the text; ticketPicturesFailed() counts them, ticketPicturesSweep() carries on past a ticket or reply that fails, and the Ticket Pictures job logs a warning (Cron-Ticket-Pictures) when there were any. bulk_add_client_ticket keeps its pictures as files straight away; deleting a client deletes its tickets with ticketDeleteForGood().
- functions/document_pdf.php: DocumentPdf (TCPDF) and documentPdfRender() draw the document and Knowledge Base article PDFs (export_document in agent/post/document.php, export_kb_article in agent/post/kb.php), from documentPdfDocument() / documentPdfKbArticle(), and are sent with billingPdfSend(). documentPdfParts() splits the purified HTML at its top-level headings (inside a Markdown document's wrapper) for the bookmarks, and puts table lines, header cells and code shading in inline styles, which TCPDF reads where it ignores the style block. clientExportPdfImages() is clientExportPdfDocumentHtml()'s image step on its own, for uploads/documents or uploads/kb, and now turns a WebP picture into a PNG.
- documentReadHtml() (functions/files.php) lays out a document or article outside the agent app - client/document.php, client/kb_article.php, guest/kb.php and guest/share.php - with .itflow-prose, and the Contents beside it in an .itflow-document-read grid (css/itflow_custom.css). js/document_contents.js reads [data-document-body] as well as .itflow-document-body, runs again from window.itflowDocumentContents() (js/guest_share.js, once a shared document is in), leaves the address alone with data-document-contents-keep-address (a shared link's secret is after its #), and keeps a section picked from the list marked while the page scrolls to it. The portal footer loads it when a page sets $portal_document_contents.
- A list table with .itflow-list-stack (css/itflow_custom.css) stacks below 768px: each row a grid card with the tick box, first cell and last (the menu) across the top and every other cell under them labelled from its data-label, and the head a wrapping row of its sort links. Used on agent/ticket_list.php, agent/credentials.php, agent/assets.php and agent/contacts.php (contacts and invites); the ticket row's phone-only line of status, priority and client is gone, as the card shows them.
## [26.12.2]

View File

@@ -484,7 +484,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 itflow-asset-table">
<table class="table table-hover align-middle mb-0 itflow-asset-table itflow-list-stack">
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap table-light">
<tr>
<?php if ($can_edit) { ?>
@@ -620,7 +620,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</div>
</td>
<td>
<td data-label="Type">
<div><?= $asset_type ?></div>
<?php if ($asset_os) { ?>
<div class="small text-body-secondary text-nowrap"><i class="<?= $asset_os_icon ?> fa-fw me-1"></i><?= $asset_os ?></div>
@@ -628,7 +628,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</td>
<?php if ($show_model) { ?>
<td class="itflow-asset-model-cell">
<td class="itflow-asset-model-cell" data-label="Model">
<div><?= $asset_make_model ?: '<span class="text-body-secondary">-</span>' ?></div>
<?php if ($asset_serial) { ?>
<div class="small text-body-secondary text-nowrap">
@@ -650,7 +650,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</td>
<?php } ?>
<td class="text-nowrap">
<td class="text-nowrap" data-label="IP">
<?php if ($asset_ip) { ?>
<span class="font-monospace"><?= $asset_ip ?></span><?php if ($asset_ip !== 'DHCP') { ?><button type="button" class="itflow-copy clipboardjs" title="Copy IP" data-clipboard-text="<?= $asset_ip ?>"><i class="far fa-copy"></i></button><?php } ?>
<?php } else { ?>
@@ -670,7 +670,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<?php } ?>
</td>
<?php if ($show_mac) { ?>
<td class="text-nowrap">
<td class="text-nowrap" data-label="MAC">
<?php if ($asset_mac) { ?>
<span class="font-monospace"><?= $asset_mac ?></span><button type="button" class="itflow-copy clipboardjs" title="Copy MAC" data-clipboard-text="<?= $asset_mac ?>"><i class="far fa-copy"></i></button>
<?php } else { ?>
@@ -679,13 +679,13 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</td>
<?php } ?>
<?php if ($show_purchase) { ?>
<td class="text-nowrap">
<td class="text-nowrap" data-label="Purchased">
<?= $asset_purchase_date ?: '<span class="text-body-secondary">-</span>' ?>
<?php if ($asset_purchase_date) { ?><div class="small text-body-secondary"><?= assetAge($row['asset_purchase_date']) ?> old</div><?php } ?>
</td>
<?php } ?>
<?php if ($show_details) { ?>
<td class="small" data-asset-details>
<td class="small" data-label="Details" data-asset-details>
<?php if ($asset_spec_rows) { ?>
<?php foreach ($asset_spec_rows as $spec_row) { ?>
<div class="text-nowrap"><?= $spec_row['flag'] ? '<span class="text-body-secondary">' . escapeHtml($spec_row['label']) . '</span> <span class="text-' . $spec_row['flag']['tone'] . '-emphasis">' . escapeHtml($spec_row['flag']['date']) . '</span>' : $spec_row['brief'] ?></div>
@@ -696,10 +696,10 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</td>
<?php } ?>
<?php if ($show_install) { ?>
<td class="text-nowrap"><?= $asset_install_date ?: '<span class="text-body-secondary">-</span>' ?></td>
<td class="text-nowrap" data-label="Installed"><?= $asset_install_date ?: '<span class="text-body-secondary">-</span>' ?></td>
<?php } ?>
<?php if ($show_warranty) { ?>
<td class="text-nowrap">
<td class="text-nowrap" data-label="Warranty">
<?php if ($asset_warranty) { ?>
<?= escapeHtml($asset_warranty['date']) ?>
<div class="small text-<?= $asset_warranty['tone'] ?>-emphasis"><?= $asset_warranty['tone'] === 'success' ? 'Covered for ' . escapeHtml(str_replace('in ', '', timeAgo($asset_warranty['date']))) : escapeHtml($asset_warranty['text']) ?></div>
@@ -709,7 +709,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</td>
<?php } ?>
<?php if ($show_contact) { ?>
<td>
<td data-label="Assigned">
<?php if ($can_edit && ($asset_contact_id || assetTypeHasField($row['asset_type'], 'contact'))) { // a type that is assigned to someone (functions/asset_type.php) ?>
<?= quickPick('asset_contact', $asset_id, (string) $asset_contact_id, assetQuickHtml('asset_contact', $row), 'list', 0, $client_id) ?>
<?php } elseif ($contact_name) { ?>
@@ -719,7 +719,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<?php } ?>
</td>
<?php } ?>
<td>
<td data-label="Location">
<?php if ($can_edit) { ?>
<?= quickPick('asset_location', $asset_id, (string) intval($row['asset_location_id']), assetQuickHtml('asset_location', $row), 'list', 0, $client_id) ?>
<?php } elseif ($location_name) { ?>
@@ -736,7 +736,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</a>
<?php } ?>
</td>
<td>
<td data-label="Status">
<?php if ($can_edit) { ?>
<?= quickPick('asset_status', $asset_id, (string) $row['asset_status'], assetQuickHtml('asset_status', $row), 'list', 0, $client_id) ?>
<?php } else { ?>
@@ -744,7 +744,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<?php } ?>
</td>
<?php if (!$client_url) { ?>
<td><a data-client-card="<?= $client_id ?>" href="assets.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
<td data-label="Client"><a data-client-card="<?= $client_id ?>" href="assets.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
<?php } ?>
<td class="text-end">
<?php if ($can_edit) { ?>

View File

@@ -470,7 +470,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
</div>
<?php if ($invites_view) { ?>
<div class="table-responsive">
<table class="table table-hover align-middle mb-0" data-contacts-invites>
<table class="table table-hover align-middle mb-0 itflow-list-stack" data-contacts-invites>
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap table-light">
<tr>
<th class="ps-3">
@@ -508,18 +508,18 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
</div>
</div>
</td>
<td class="d-none d-md-table-cell small">
<td class="d-none d-md-table-cell small" data-label="Sees">
<?= $invite_sees ? escapeHtml(implode(', ', $invite_sees)) : '<span class="text-body-secondary">Their own tickets</span>' ?>
</td>
<td class="small d-none d-sm-table-cell">
<td class="small d-none d-sm-table-cell" data-label="Sent">
<div title="<?= formatDateTime($row['invite_created_at']) ?>"><?= escapeHtml(timeAgo($row['invite_created_at'])) ?></div>
<div class="text-body-secondary">
<?= $invite_by !== '' ? 'by ' . escapeHtml($invite_by) . (intval($row['invite_created_by_contact_id']) ? ' in the portal' : '') : '' ?><?= intval($row['invite_sent_count']) > 1 ? ' &middot; sent ' . intval($row['invite_sent_count']) . ' times' : '' ?>
</div>
</td>
<td><span class="badge rounded-pill text-bg-<?= $invite_state['tone'] ?>" title="<?= escapeHtml($invite_state['title']) ?>"><?= escapeHtml($invite_state['label']) ?></span></td>
<td data-label="Link"><span class="badge rounded-pill text-bg-<?= $invite_state['tone'] ?>" title="<?= escapeHtml($invite_state['title']) ?>"><?= escapeHtml($invite_state['label']) ?></span></td>
<?php if (!$client_url) { ?>
<td><a href="contacts.php?client_id=<?= $invite_client_id ?>&role=invites"><?= escapeHtml($row['client_name']) ?></a></td>
<td data-label="Client"><a href="contacts.php?client_id=<?= $invite_client_id ?>&role=invites"><?= escapeHtml($row['client_name']) ?></a></td>
<?php } ?>
<td class="text-end">
<?php if ($can_edit) { ?>
@@ -547,7 +547,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 itflow-contact-table">
<table class="table table-hover align-middle mb-0 itflow-contact-table itflow-list-stack">
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap table-light">
<tr>
<th class="checkbox-column border-end">
@@ -623,7 +623,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
</div>
</div>
</td>
<td class="small itflow-contact-reach">
<td class="small itflow-contact-reach" data-label="Reach">
<?php if ($contact_phone_link) { ?>
<div class="text-nowrap"><i class="fas fa-fw fa-phone text-body-secondary me-1" title="Phone"></i><?= $contact_phone_link ?></div>
<?php } ?>
@@ -637,7 +637,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
<span class="text-body-secondary">-</span>
<?php } ?>
</td>
<td>
<td data-label="Location">
<?php if ($can_edit && !$contact_archived_at) { ?>
<?= quickPick('contact_location', $contact_id, (string) intval($row['contact_location_id']), contactLocationHtml($row), 'list', 0, $client_id) ?>
<?php } elseif ($row['location_name']) { ?>
@@ -646,7 +646,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
<span class="text-body-secondary">-</span>
<?php } ?>
</td>
<td class="d-none d-lg-table-cell">
<td class="d-none d-lg-table-cell" data-label="Linked">
<div class="d-flex flex-wrap gap-1">
<?php if ($assets_n) { ?>
<a class="itflow-contact-chip" href="<?= $contact_url ?>#assets" title="<?= $assets_n ?> asset<?= $assets_n === 1 ? '' : 's' ?>"><i class="fas fa-desktop"></i><?= $assets_n ?></a>
@@ -666,7 +666,7 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
</div>
</td>
<?php if (!$client_url) { ?>
<td><a data-client-card="<?= $client_id ?>" href="contacts.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
<td data-label="Client"><a data-client-card="<?= $client_id ?>" href="contacts.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
<?php } ?>
<td class="text-end">
<?php $row_new_ticket = !$contact_archived_at && $config_module_enable_ticketing && lookupUserPermission('module_support') >= 2;

View File

@@ -314,7 +314,7 @@ $filter_url = function ($changes) use ($client_url) {
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 itflow-asset-table">
<table class="table table-hover align-middle mb-0 itflow-asset-table itflow-list-stack">
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap table-light">
<tr>
<?php if ($can_edit) { ?>
@@ -383,7 +383,7 @@ $filter_url = function ($changes) use ($client_url) {
</div>
</div>
</td>
<td>
<td data-label="Login">
<div class="d-flex align-items-center small"><i class="fas fa-fw fa-user text-body-secondary me-1"></i><?= credentialUsernameHtml(credentialUsername($row)) ?></div>
<div class="d-flex align-items-center flex-wrap gap-2 mt-1 small">
<?= credentialPasswordHtml($credential_id) ?>
@@ -393,7 +393,7 @@ $filter_url = function ($changes) use ($client_url) {
<div class="small text-nowrap mt-1"><?= credentialUriHtml($uri, 34) ?></div>
<?php } ?>
</td>
<td class="small itflow-credential-for">
<td class="small itflow-credential-for" data-label="For">
<div class="d-flex flex-column gap-1">
<?= implode('', credentialOwnersHtml($row)) ?>
<?php foreach (array_slice($credential_links, 0, 2) as [$type, $id, $name]) { ?>
@@ -409,12 +409,12 @@ $filter_url = function ($changes) use ($client_url) {
<?php if (!$row['asset_id'] && !$row['contact_id'] && !$credential_links) { ?><span class="text-body-secondary">-</span><?php } ?>
</div>
</td>
<td class="text-nowrap">
<td class="text-nowrap" data-label="Changed">
<?= credentialAgePill($age, true) ?: '<span class="text-body-secondary">-</span>' ?>
<?php if ($row['credential_accessed_at']) { ?><div class="small text-body-secondary mt-1" title="Password last shown or copied <?= formatDateTime($row['credential_accessed_at']) ?>">Used <?= timeAgo($row['credential_accessed_at']) ?></div><?php } ?>
</td>
<?php if (!$client_url) { ?>
<td><a data-client-card="<?= $row_client_id ?>" href="credentials.php?client_id=<?= $row_client_id ?>"><?= escapeHtml($row['client_name']) ?></a></td>
<td data-label="Client"><a data-client-card="<?= $row_client_id ?>" href="credentials.php?client_id=<?= $row_client_id ?>"><?= escapeHtml($row['client_name']) ?></a></td>
<?php } ?>
<td class="text-end">
<div class="dropdown dropstart">

View File

@@ -87,7 +87,7 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 itflow-asset-table itflow-ticket-list">
<table class="table table-hover align-middle mb-0 itflow-asset-table itflow-ticket-list itflow-list-stack">
<thead class="<?php if (!$tickets) { echo "d-none"; } ?> text-nowrap table-light">
<tr>
<?php if ($can_edit) { ?>
@@ -196,18 +196,12 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
<!-- Tags - the + to change them while it is open; an untagged one gets its first from Tags in the row's menu -->
<div class="itflow-tags-row mt-1"><?= tagPills('ticket', $ticket_id, $tickets_tags[$ticket_id] ?? [], "tickets.php?$client_url", $can_edit && !$is_closed) ?></div>
<?php } ?>
<!-- On a phone the other columns are off to the side - the essentials come along -->
<div class="d-md-none d-flex flex-wrap align-items-center gap-1 mt-1 small">
<?= ticketStatusHtml($row['ticket_status_name'], $row['ticket_status_color'], 'detail') ?>
<?= ticketPriorityHtml($row['ticket_priority'], 'detail') ?>
<?php if (!$client_url && $row_client_id) { ?><span class="text-body-secondary text-truncate"><?= escapeHtml($row['client_name']) ?></span><?php } ?>
</div>
</div>
</div>
</td>
<!-- Who it is for -->
<td class="itflow-ticket-who-cell">
<td class="itflow-ticket-who-cell" data-label="<?= $client_url ? 'Contact' : 'Client' ?>">
<?php if (!$client_url) { ?>
<?php if ($row_client_id) { ?>
<a data-client-card="<?= $row_client_id ?>" class="d-block text-truncate text-body fw-semibold small" href="tickets.php?client_id=<?= $row_client_id ?>"><?= escapeHtml($row['client_name']) ?></a>
@@ -223,7 +217,7 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
</td>
<!-- Status -->
<td class="text-nowrap">
<td class="text-nowrap" data-label="Status">
<span data-ticket-status-for="<?= $ticket_id ?>" data-status-id="<?= intval($row['ticket_status']) ?>">
<?php if ($can_edit && $is_open) { ?>
<?= quickPick('status', $ticket_id, (string) intval($row['ticket_status']), ticketStatusHtml($row['ticket_status_name'], $row['ticket_status_color'], 'detail')) ?>
@@ -237,7 +231,7 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
</td>
<!-- Priority -->
<td class="text-nowrap">
<td class="text-nowrap" data-label="Priority">
<?php if ($can_edit && !$is_closed) { ?>
<?= quickPick('priority', $ticket_id, $row['ticket_priority'], ticketPriorityHtml($row['ticket_priority'], 'detail')) ?>
<?php } else { ?>
@@ -246,7 +240,7 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
</td>
<!-- Agent -->
<td class="text-nowrap">
<td class="text-nowrap" data-label="Assigned">
<?php $assignee = formatAssignee($row['ticket_assigned_to'], $row['user_name'], $row['user_avatar'], $is_open); ?>
<?php if ($can_edit && !$is_closed) { ?>
<?= quickPick('assignee', $ticket_id, (string) intval($row['ticket_assigned_to']), $assignee) ?>
@@ -258,20 +252,20 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
<!-- Due - its own date and its SLA -->
<?php if ($show_due) { ?>
<td class="text-nowrap">
<td class="text-nowrap" data-label="Due">
<?php $due_html = trim(ticketDuePill($due) . ' ' . ticketSlaPill($sla)); ?>
<?= $due_html !== '' ? '<div class="d-flex flex-column align-items-start gap-1">' . $due_html . '</div>' : '<span class="text-body-secondary">-</span>' ?>
</td>
<?php } ?>
<!-- Who spoke last -->
<td class="small itflow-ticket-activity" data-reply-peek="<?= $ticket_id ?>">
<td class="small itflow-ticket-activity" data-label="Activity" data-reply-peek="<?= $ticket_id ?>">
<?= ticketActivityHtml($last_replies[$ticket_id] ?? null, $row) ?>
</td>
<!-- Billing -->
<?php if ($show_billing) { ?>
<td class="text-center text-nowrap">
<td class="text-center text-nowrap" data-label="Billing">
<?php if ($ticket_invoice_id) { ?>
<a href="invoice.php?invoice_id=<?= $ticket_invoice_id ?>"><span class="badge rounded-pill text-bg-success">Invoiced</span></a>
<?php } elseif ($ticket_quote_id) { ?>

View File

@@ -6216,6 +6216,107 @@ tr:hover .itflow-files-rename,
.itflow-ticket-row.is-warning > td:first-child {
box-shadow: inset 3px 0 0 var(--bs-warning), inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
/* Lists on a phone (.itflow-list-stack - tickets, credentials, assets, contacts): each row stacks into
a card - its tick box, name and menu across the top, then every other column as a label (the cell's
data-label) and its value. The column heads become a row of sort links over the cards. */
@media (max-width: 767.98px) {
.table.itflow-list-stack,
.table.itflow-list-stack > thead,
.table.itflow-list-stack > tbody {
display: block;
}
.table.itflow-list-stack > thead > tr {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .3rem 1rem;
padding: .55rem .75rem;
border-bottom: 1px solid var(--bs-border-color);
background-color: var(--bs-tertiary-bg);
}
.table.itflow-list-stack > thead > tr > th {
display: block;
padding: 0;
border: 0 !important;
background-color: transparent !important;
box-shadow: none;
font-size: .8rem;
}
/* Only the heads that sort, and the tick box that picks them all */
.table.itflow-list-stack > thead > tr > th:not(.checkbox-column):not(:has(a)) {
display: none;
}
.table.itflow-list-stack > tbody > tr {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: start;
column-gap: .6rem;
row-gap: .4rem;
padding: .75rem;
border-bottom: 1px solid var(--bs-border-color);
}
.table.itflow-list-stack > tbody > tr > td {
display: block;
min-width: 0;
max-width: none;
padding: 0;
border: 0 !important;
background-color: transparent !important;
box-shadow: none !important;
white-space: normal;
text-align: start !important;
overflow-wrap: anywhere;
}
.table.itflow-list-stack > tbody > tr > td.checkbox-column {
grid-column: 1;
grid-row: 1;
padding-top: .1rem;
}
.table.itflow-list-stack > tbody > tr > td:is(.checkbox-column + td, :first-child:not(.checkbox-column)) {
grid-column: 2;
grid-row: 1;
}
.table.itflow-list-stack > tbody > tr > td:last-child:not(:first-child) {
grid-column: 3;
grid-row: 1;
}
.table.itflow-list-stack > tbody > tr > td[data-label] {
position: relative;
grid-column: 1 / -1;
min-height: 1.25rem;
padding-left: 6.5rem;
}
/* A long email or address wraps rather than pushing the card wider than the phone */
.table.itflow-list-stack > tbody > tr > td .text-nowrap {
white-space: normal !important;
}
.table.itflow-list-stack > tbody > tr > td[data-label]::before {
content: attr(data-label);
position: absolute;
top: .15rem;
left: 0;
width: 6rem;
font-size: .7rem;
font-weight: 600;
line-height: 1.2;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--bs-secondary-color);
}
/* The compact layout's row padding is the card's here */
.itflow-compact .app-main .table.itflow-list-stack > * > tr > * {
padding-top: 0;
padding-bottom: 0;
}
/* Late, or close to it - the edge down the card */
.table.itflow-list-stack > tbody > tr.is-danger {
box-shadow: inset 3px 0 0 var(--bs-danger);
}
.table.itflow-list-stack > tbody > tr.is-warning {
box-shadow: inset 3px 0 0 var(--bs-warning);
}
}
/* Urgent is dark everywhere - on a dark page it needs to stand out the other way */
[data-bs-theme=dark] .itflow-ticket-list .badge.text-bg-dark,
[data-bs-theme=dark] .itflow-ticket-card .badge.text-bg-dark,