Skip to content

Commit

Permalink
Make Add drop-down menu a panel. Also fix welcome message and main me…
Browse files Browse the repository at this point in the history
…nu visibility. (CFM-321) (#256)
  • Loading branch information
arlen authored Nov 27, 2024
1 parent 6c2e6a4 commit 11cd46c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/resources/locales/en_US/menu.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 6 additions & 1 deletion app/templates/element/menuMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
?>
<?php if($userHasMenu): ?>
<div id="navigation-drawer">
<nav id="navigation" aria-label="<?= __d('menu','menu.main') ?>">
<ul id="main-menu">
Expand Down Expand Up @@ -104,7 +108,7 @@
</ul>
</nav>
<nav id="navigation-bottom" aria-label="<?= __d('menu','menu.advanced') ?>">
<?php if(!empty($vv_cur_co)): ?>
<?php if(!empty($vv_cur_co) && $vv_menu_permissions['configuration']): ?>
<div id="all-button-container">
<?= $this->Html->link(
__d('menu', 'co.all'),
Expand All @@ -127,3 +131,4 @@
</button>
</nav>
</div>
<?php endif; ?>
5 changes: 5 additions & 0 deletions app/webroot/css/co-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 11cd46c

Please sign in to comment.