diff --git a/static/js/keyboard-shortcuts.js b/static/js/keyboard-shortcuts.js index cf61a1f..3f9a1c4 100644 --- a/static/js/keyboard-shortcuts.js +++ b/static/js/keyboard-shortcuts.js @@ -57,7 +57,7 @@ function handleKeyboardShortcuts(event) { break; case 'Alt+I': event.preventDefault(); - navigateTo('/import'); + navigateTo('/admin/import'); break; case 'Alt+A': event.preventDefault(); diff --git a/static/js/main.js b/static/js/main.js index 0e10f71..4f6e284 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -475,7 +475,11 @@ async function checkUserPermissions() { const adminDivider = document.getElementById('admin-menu-divider'); if (adminItem) adminItem.classList.remove('hidden'); if (adminDivider) adminDivider.classList.remove('hidden'); - // Import navigation items removed + // Show import menu for admins + const importDesktop = document.getElementById('nav-import-desktop'); + const importMobile = document.getElementById('nav-import-mobile'); + if (importDesktop) importDesktop.classList.remove('hidden'); + if (importMobile) importMobile.classList.remove('hidden'); } const userDropdownName = document.querySelector('#userDropdown button span'); if (user.full_name && userDropdownName) { diff --git a/templates/base.html b/templates/base.html index e04d3b9..c87cfe8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -55,11 +55,11 @@ Search - - @@ -129,11 +129,11 @@ Search - - @@ -433,10 +433,9 @@ '/files': 'File Cabinet', '/financial': 'Financial/Ledger', '/documents': 'Document Management', - '/import': 'Data Import', + '/admin/import': 'Data Import', '/search': 'Advanced Search', '/admin': 'System Administration', - '/flexible': 'Flexible Imports' }; const currentPage = pageNames[path] || `Page: ${path}`; diff --git a/templates/dashboard.html b/templates/dashboard.html index 5e60b69..4f9e51c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -129,7 +129,7 @@ Global Search Ctrl+F -