From b76da95cea360b928cf19d4ac193f21dfecc6dc4 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Mon, 25 May 2026 19:58:43 +0000 Subject: [PATCH] View doc + Upload Link buttons open new window, always visible in both admin panels --- admin/index.php | 54 +++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/admin/index.php b/admin/index.php index 05cfcce..890afba 100644 --- a/admin/index.php +++ b/admin/index.php @@ -857,19 +857,17 @@ textarea.notes-ta:focus{border-color:#f97316} - - 📄 View Submitted Doc ↗ - -
+
+ + 📄 View Submitted Doc ↗ + - - - +
@@ -885,19 +883,17 @@ textarea.notes-ta:focus{border-color:#f97316} - - 📄 View Submitted Doc ↗ - -
+
+ + 📄 View Submitted Doc ↗ + - - - +
@@ -1287,8 +1283,10 @@ textarea.notes-ta:focus{border-color:#f97316} $stepConfirmed = in_array($cb['status'], ['confirmed','completed']); $stepWaiver = (bool)$cb['waiver_signed']; $stepInsurance = (bool)$cb['insurance_verified']; + $insFile = $cb['insurance_file'] ?? ''; $stepDeposit = (bool)$cb['deposit_received']; $stepLicense = (bool)$cb['license_verified']; + $licFile = $cb['license_file'] ?? ''; $stepHelmet = (bool)$cb['helmet_provided']; $stepSafety = (bool)$cb['safety_course']; $stepOps = (bool)$cb['operational_course']; @@ -1363,14 +1361,18 @@ textarea.notes-ta:focus{border-color:#f97316}
Insurance Received - + -
+
+ + 📄 View Doc ↗ + +
@@ -1383,14 +1385,18 @@ textarea.notes-ta:focus{border-color:#f97316}
Driver's License Verified - + -
+
+ + 📄 View Doc ↗ + +
@@ -1665,13 +1671,9 @@ function saveNotes(id) { } // ── Send reminder email ─────────────────────────────────────────────────────── -function copyUploadLink(ref, type, btn) { +function openUploadLink(ref, type) { const url = 'https://parkerslingshot.epictravelexpeditions.com/upload-docs.php?ref=' + encodeURIComponent(ref) + '&type=' + type; - navigator.clipboard.writeText(url).then(() => { - const orig = btn.textContent; - btn.textContent = '✓ Copied!'; - setTimeout(() => btn.textContent = orig, 2000); - }).catch(() => prompt('Copy this link:', url)); + window.open(url, '_blank'); } function resendConfirmation(id, btn) {