Link opens the standard picker under the button instead of a window - linked records ticked, tick to link and untick to unlink, saved when the picker closes with one message - for every record link, contact and asset credentials, a contact's assets, project and service tickets, a ticket's services and related tickets, with a document's or file's Link grouped by kind and quick looks reloading in place; the old link windows and the handlers only they used are removed

This commit is contained in:
johnnyq
2026-11-20 18:23:48 -05:00
parent c1bdc99c14
commit 8ac88a48fd
54 changed files with 837 additions and 1252 deletions

View File

@@ -187,9 +187,7 @@ echo agentBannersHtml($project_client_id);
<div class="dropdown">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown"><i class="fas fa-link me-2"></i>Add tickets</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/project/project_link_ticket.php?project_id=<?= $project_id ?>">
<i class="fas fa-fw fa-life-ring text-secondary me-2"></i>Tickets already raised
</a>
<?= linkPickerButton('project', $project_id, 'ticket', 'Tickets already raised', 'dropdown-item', 'fas fa-fw fa-life-ring text-secondary me-2') ?>
<?php if ($has_templates) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/project/project_apply_template.php?project_id=<?= $project_id ?>">
<i class="fas fa-fw fa-cubes text-secondary me-2"></i>From a project template