mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 20:37:24 +00:00
Tags stage 2: tags on five more record kinds (tickets, documents, [kind], [kind], [kind]) working like the other seven with tag pills and + picker on list, page and quick look, Tags field in New and Edit, list tag filter and tag-name search, Bulk Action Tags, export tag filter and Tags column; tickets list shows + only once a ticket has a tag, Tags under More filters with its own chip, board cards show tags, tag changes written to ticket history and merging moves non-archived tags; document tag filter in client Files and at top level across all folders excluding uploads, bulk Tags only tags ticked documents, cross-client document tags open a global search; global search matches tag names, shows the matching tag on each result and adds a Tags group; API tags read, update and create endpoints plus a tags list on every record read, per-kind permission checks and tag creation limited to admin keys; Tags starter pack and demo data cover the new kinds; changelog breaking change for tag-name matching in searches and upgrade note now 2.7.9 to 3.1.4; stage 1 tag test updated for twelve kinds
This commit is contained in:
@@ -53,6 +53,7 @@ while ($version = mysqli_fetch_assoc($sql_versions)) {
|
||||
}
|
||||
|
||||
$csrf = $_SESSION['csrf_token'];
|
||||
$document_tags_display = tagPills('document', $document_id, tagsForRecord('document', $document_id), "files.php?client_id=$client_id&", $can_edit && !$document_archived);
|
||||
|
||||
// Tab title - used raw, the header escapes it
|
||||
$page_title = $row['document_name'];
|
||||
@@ -81,6 +82,9 @@ $page_title = $row['document_name'];
|
||||
<?php if ($document_description) { ?>
|
||||
<div class="text-body-secondary"><?= $document_description ?></div>
|
||||
<?php } ?>
|
||||
<?php if ($document_tags_display) { ?>
|
||||
<div class="mt-1"><?= $document_tags_display ?></div>
|
||||
<?php } ?>
|
||||
<div class="small text-body-secondary mt-1">
|
||||
<span title="<?= escapeHtml($document_updated_at) ?>">Updated <?= timeAgo($document_updated_at) ?></span><?= $document_updated_by ? " by $document_updated_by" : '' ?>
|
||||
· Created <?= date('M j, Y', strtotime($row['document_created_at'])) ?><?= $row['created_by_name'] ? ' by ' . escapeHtml($row['created_by_name']) : '' ?>
|
||||
|
||||
Reference in New Issue
Block a user