Skip to content

Make Add drop-down menu a panel. (CFM-321) #256

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/resources/locales/en_US/menu.po
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
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
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