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

@@ -176,7 +176,7 @@ ob_start();
<div class="d-flex align-items-center mt-1 mb-1">
<span class="small text-body-secondary fw-semibold text-uppercase me-auto">Services that use it</span>
<?php if ($can_edit) { ?>
<a class="small ajax-modal" href="#" data-modal-url="modals/link/link.php?from=certificate&id=<?= $certificate_id ?>&to=service"><i class="fas fa-link me-1"></i>Link a service</a>
<?= linkPickerButton('certificate', $certificate_id, 'service', 'Link a service', 'small', 'fas fa-link me-1') ?>
<?php } ?>
</div>
<?php if ($services) { ?>