From 7b327b36413d88eb03f82cc8f1f9370c58681578 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 28 Jul 2026 19:35:57 -0400 Subject: [PATCH] =?UTF-8?q?Add=20delivery=20location=20fields=20to=20asset?= =?UTF-8?q?=20detail=20view.=20Fix=20Make=E2=86=92manufacturer.=20Add=20Co?= =?UTF-8?q?mpany,=20Device,=20State,=20Postal=20Code,=20Route,=20Subroute,?= =?UTF-8?q?=20Management=20Co.,=20Phone,=20Email.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/static/index.html b/static/index.html index 7e1901b..ca7155d 100644 --- a/static/index.html +++ b/static/index.html @@ -5087,7 +5087,7 @@ ${renderAssetCardContent(a)}
${esc(a.machine_id)}${a.serial_number ? ' · S/N: ' + esc(a.serial_number) : ''} - ${a.make ? ' · ' + esc(a.make) : ''} + ${a.manufacturer ? ' · ' + esc(a.manufacturer) : ''} ${a.disney_park ? ' · ' + parkIcon(a.disney_park) + ' ' + parkName(a.disney_park) + '' : ''} · ${esc(catLabel(a.category))}
@@ -5209,18 +5209,32 @@ df('Serial Number', a.serial_number, true), df('Telemetry ID', a.description), df('Category', catLabel(a.category)), - df('Make', a.make), + df('Make', a.manufacturer || (!a.manufacturer && a.make ? a.make : '—')), df('Model', a.model), + df('Device', a.device), + df('Company', a.company), df('Last Dex Report', a.dex_report_date || '— No report yet', true), - // Location fields (shown in card but missing from details) - df('Place', a.place), + // Location fields + df('Place (City)', a.place), + df('State', a.state), + df('Postal Code', a.postal_code), + df('Address', a.address), df('Building', a.building_name), df('Building #', a.building_number), df('Floor', a.floor), df('Room', a.room), df('Trailer', a.trailer_number), + // Delivery routing + df('Route', a.route_name), + df('Subroute', a.subroute_name), + df('Management Co.', a.management_company), + + // Contact + df('Phone', a.phone), + df('Email', a.email), + ].filter(Boolean).join(''); // Disney Park badge @@ -5281,7 +5295,6 @@ if (a.map_link) dirBtn.style.display = 'inline-flex'; else dirBtn.style.display = 'none'; document.getElementById('detailDirFields').innerHTML = [ - df('Address', a.address), df('Building', a.building_name), df('Building #', a.building_number), df('Trailer', a.trailer_number),