From 8012a33b88b7fd02a2e41e884fdb222088519125 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Wed, 27 Nov 2024 12:54:02 -0500 Subject: [PATCH] Make Add drop-down menu a panel. Also fix welcome message and main menu visibility. (CFM-321) --- app/resources/locales/en_US/menu.po | 2 +- app/templates/element/menuMain.php | 7 ++++++- app/webroot/css/co-responsive.css | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/resources/locales/en_US/menu.po b/app/resources/locales/en_US/menu.po index 9020e1cd3..4d4dc64f3 100644 --- a/app/resources/locales/en_US/menu.po +++ b/app/resources/locales/en_US/menu.po @@ -196,7 +196,7 @@ msgid "menu.home" msgstr "Home" msgid "menu.introduction" -msgstr "Please select an action from the menu." +msgstr "Welcome to COmanage Registry." msgid "menu.main" msgstr "Main Menu" diff --git a/app/templates/element/menuMain.php b/app/templates/element/menuMain.php index 418e17432..caad73a47 100644 --- a/app/templates/element/menuMain.php +++ b/app/templates/element/menuMain.php @@ -26,7 +26,11 @@ */ // The following menu will only render if we have a user and CO (see default.ctp) +// and if the user has any menu to render. + +$userHasMenu = in_array( true, $vv_menu_permissions, true ); ?> + + \ No newline at end of file diff --git a/app/webroot/css/co-responsive.css b/app/webroot/css/co-responsive.css index 066046f7f..d33cc78a7 100644 --- a/app/webroot/css/co-responsive.css +++ b/app/webroot/css/co-responsive.css @@ -468,6 +468,11 @@ .field-actions.top-links .actions-expanded a.dropdown-item:hover { background-color: transparent; } + /* Provide two-column dropdown for enrollment attributes. + XXX We might generalize this for long lists. */ + body.enrollmentattributes .top-links ul.dropdown-menu { + column-count: 2; + } #view-external-identity-source-record td:first-child { white-space: nowrap; }