diff --git a/web/admin.html b/web/admin.html index 3eed947..ebfa212 100644 --- a/web/admin.html +++ b/web/admin.html @@ -59,6 +59,7 @@ Registration + Type From ETA @@ -96,6 +97,7 @@ Registration + Type To ETD @@ -137,6 +139,7 @@ Registration + Callsign Destination Departed @@ -171,6 +174,7 @@ Registration + Type From Arrived @@ -205,6 +209,7 @@ Date Registration + Type From ETA @@ -1499,6 +1504,7 @@ if (isLocal) { row.innerHTML = ` ${flight.registration || '-'} + ${flight.callsign || '-'} - ${formatTimeOnly(flight.departed_dt)} @@ -1506,6 +1512,7 @@ } else if (isDeparture) { row.innerHTML = ` ${flight.registration || '-'} + ${flight.callsign || '-'} ${flight.out_to || '-'} ${formatTimeOnly(flight.departed_dt)} @@ -1513,6 +1520,7 @@ } else { row.innerHTML = ` ${flight.ac_reg || '-'} + P ${flight.ac_call || '-'} ${flight.out_to || '-'} ${formatTimeOnly(flight.departed_dt)} @@ -1612,7 +1620,12 @@ row.style.cssText = 'font-size: 0.85rem !important; font-style: italic;'; // Get registration based on type (PPR vs booked-in) - const registration = ppr.ac_reg || ppr.registration || '-'; + let registration = ppr.ac_reg || ppr.registration || '-'; + let typeIconParked = ''; + if (!isBookedIn) { + // Add P icon for PPR flights + typeIconParked = 'P'; + } // Get aircraft type based on type (PPR vs booked-in) const acType = ppr.ac_type || ppr.type || '-'; @@ -1644,6 +1657,7 @@ row.innerHTML = ` ${registration} + ${typeIconParked} ${acType} ${fromAirport} ${arrivedDisplay} @@ -1725,6 +1739,7 @@ row.innerHTML = ` ${dateDisplay} ${ppr.ac_reg || '-'} + P ${ppr.ac_type || '-'} ${ppr.in_from || '-'} ${formatTimeOnly(ppr.eta)} @@ -1822,7 +1837,7 @@ ${flight.notes} ` : ''; - let aircraftDisplay, acType, fromDisplay, eta, pob, fuel, actionButtons; + let aircraftDisplay, acType, fromDisplay, eta, pob, fuel, actionButtons, typeIcon; if (isLocal) { // Local flight display @@ -1832,6 +1847,7 @@ aircraftDisplay = `${flight.registration}`; } acType = flight.type; + typeIcon = ''; fromDisplay = `${flight.flight_type === 'CIRCUITS' ? 'Circuits' : flight.flight_type === 'LOCAL' ? 'Local Flight' : 'Departure'}`; eta = flight.departure_dt ? formatTimeOnly(flight.departure_dt) : '-'; pob = flight.pob || '-'; @@ -1852,6 +1868,7 @@ aircraftDisplay = `${flight.registration}`; } acType = flight.type; + typeIcon = ''; // Lookup airport name for in_from let fromDisplay_temp = flight.in_from; @@ -1880,6 +1897,7 @@ aircraftDisplay = `${flight.ac_reg}`; } acType = flight.ac_type; + typeIcon = 'P'; // Lookup airport name for in_from let fromDisplay_temp = flight.in_from; @@ -1903,6 +1921,7 @@ row.innerHTML = ` ${aircraftDisplay}${notesIndicator} + ${typeIcon} ${acType} ${fromDisplay} ${eta} @@ -1958,7 +1977,7 @@ ${flight.notes} ` : ''; - let aircraftDisplay, toDisplay, etd, pob, fuel, landedDt, actionButtons; + let aircraftDisplay, toDisplay, etd, pob, fuel, landedDt, actionButtons, typeIcon; if (isLocal) { // Local flight display @@ -1967,6 +1986,7 @@ } else { aircraftDisplay = `${flight.registration}`; } + typeIcon = ''; toDisplay = `${flight.flight_type === 'CIRCUITS' ? 'Circuits' : flight.flight_type === 'LOCAL' ? 'Local Flight' : 'Departure'}`; etd = flight.etd ? formatTimeOnly(flight.etd) : (flight.created_dt ? formatTimeOnly(flight.created_dt) : '-'); pob = flight.pob || '-'; @@ -2002,6 +2022,7 @@ } else { aircraftDisplay = `${flight.registration}`; } + typeIcon = ''; toDisplay = flight.out_to || '-'; if (flight.out_to && flight.out_to.length === 4 && /^[A-Z]{4}$/.test(flight.out_to)) { toDisplay = await getAirportDisplay(flight.out_to); @@ -2033,6 +2054,7 @@ } else { aircraftDisplay = `${flight.ac_reg}`; } + typeIcon = 'P'; toDisplay = flight.out_to || '-'; if (flight.out_to && flight.out_to.length === 4 && /^[A-Z]{4}$/.test(flight.out_to)) { toDisplay = await getAirportDisplay(flight.out_to); @@ -2054,6 +2076,7 @@ row.innerHTML = ` ${aircraftDisplay}${notesIndicator} + ${typeIcon} ${isLocal ? flight.type : isDeparture ? flight.type : flight.ac_type} ${toDisplay} ${etd}