diff --git a/webapp/includes/app.js b/webapp/includes/app.js index e7524e8..fff5ac6 100644 --- a/webapp/includes/app.js +++ b/webapp/includes/app.js @@ -437,6 +437,35 @@ async function loadShortnames() { } } +// Load shortnames grid for settings page +async function loadShortnamesGrid() { + const container = document.getElementById('shortnamesContainer'); + if (!container) return; + + try { + const result = await api('shortnames_list'); + + if (result.success && result.data.length > 0) { + container.innerHTML = ` +
+ Shortnames are automatically created when you add entries with a client short name. +
+ `; + } else { + container.innerHTML = 'No client shortnames found. Add entries with a client short name to create shortnames.
'; + } + } catch (error) { + container.innerHTML = 'Failed to load shortnames
'; + } +} + // Load logos grid async function loadLogosGrid() { const grid = document.getElementById('logoGrid'); diff --git a/webapp/settings.php b/webapp/settings.php index 43e4b18..401448e 100644 --- a/webapp/settings.php +++ b/webapp/settings.php @@ -396,16 +396,11 @@ require_once __DIR__ . '/includes/header.php'; Client Shortnames -Manage client shortnames for organizing geofeed entries.
+Client shortnames currently in use across geofeed entries.