Skip to content

Enable and update menuPanels (CFM-224/CFM-90) #66

Merged
merged 4 commits into from
Feb 7, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 56 additions & 5 deletions app/resources/locales/en_US/menu.po
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,50 @@ msgid "co.Attributes"
msgstr "Attributes"

msgid "co.configuration"
msgstr "Config"
msgstr "Configuration"

msgid "co.configuration.panel.az"
msgstr "A-Z Listing"

msgid "co.configuration.panel.title"
msgstr "Configuration"

msgid "co.configuration.panel.personalization"
msgstr "Personalization"

msgid "co.configuration.panel.personalization.desc"
msgstr "Dashboards, custom text, and theming"

msgid "co.configuration.panel.platform"
msgstr "Platform-Wide Settings"

msgid "co.configuration.panel.platform.desc"
msgstr "These configurations are found only in the COmanage CO"

msgid "co.configuration.panel.setup"
msgstr "CO Setup"

msgid "co.configuration.panel.setup.desc"
msgstr "Settings for the current CO"

msgid "co.connections"
msgstr "Connections"

msgid "co.lifecycle"
msgstr "Lifecycle"
msgid "co.connections.panel.title"
msgstr "Connections"

msgid "co.connections.panel.desc"
msgstr "Connections to external services: upstream inputs and downstream outputs"

msgid "co.operations"
msgstr "Operations"

msgid "co.operations.panel.title"
msgstr "Operations"

msgid "co.operations.panel.desc"
msgstr "Operational activities"

msgid "co.groups"
msgstr "Groups"

Expand All @@ -61,7 +94,7 @@ msgid "co.people.panel.title"
msgstr "People"

msgid "co.people.panel.desc"
msgstr "COmanage Registry is a registry for people. This section contains the basic building blocks for modeling and managing people in COmanage."
msgstr "Model and manage people in COmanage Registry"

msgid "co.people.population"
msgstr "My Population"
Expand All @@ -72,11 +105,23 @@ msgstr "Review and manage people in your collaboration (CO Person Records)"
msgid "co.structure"
msgstr "Structure"

msgid "co.structure.cous.desc"
msgstr "Collaborative Organizational Units (COUs) are the primary structural objects used to allow delegation of person management within a CO. COUs attach to a Person Role and imply specific Group memberships."

msgid "co.structure.depts.desc"
msgstr "Departments represent entities within a CO or COU and can store telephone numbers, email addresses, URLs, identifiers, and sets of people."

msgid "co.structure.groups.desc"
msgstr "Groups attach to a Person. By default, any CO Person can create a new CO Group."

msgid "co.structure.orgs.desc"
msgstr "Organizations are like Departments but represent entities external to the CO."

msgid "co.structure.panel.title"
msgstr "Structure"

msgid "co.structure.panel.desc"
msgstr "COmanage registry provides structures for modeling and managing your organization, including COUs, Groups, and Departments."
msgstr "Groupings for your population"

msgid "co.structure.groups"
msgstr "Groups"
Expand All @@ -87,3 +132,9 @@ msgstr "All Groups"
msgid "co.switch"
msgstr "Switch CO"

msgid "related.configurations"
msgstr "Related Configurations"

msgid "related.links"
msgstr "Related Links"

16 changes: 12 additions & 4 deletions app/templates/Dashboards/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
?>

<div class="pageTitleContainer">
<div class="pageTitle">
<h1><?= $vv_title; ?></h1>
</div>
</div>

<section class="inner-content">
<?php if(!empty($vv_platform_menu_items)): ?>
<ul id="configuration-menu" class="three-col">
<ul id="platform-menu" class="config-menu">
<?php foreach($vv_platform_menu_items as $label => $cfg): ?>
<li>
<?php
Expand All @@ -45,8 +52,7 @@
<?php endforeach; // $vv_configuration_menu_items ?>
</ul>
<?php endif; // $vv_platform_menu_items ?>
<hr />
<ul id="configuration-menu" class="three-col">
<ul id="configuration-menu" class="config-menu">
<?php foreach($vv_configuration_menu_items as $label => $cfg): ?>
<li>
<?php
Expand All @@ -66,4 +72,6 @@
</ul>
</section>

<?php print __('registry.version', chop(file_get_contents(CONFIG . "VERSION"))); ?>
<div class="comanage-version">
<?php print __('registry.version', chop(file_get_contents(CONFIG . "VERSION"))); ?>
</div>
15 changes: 13 additions & 2 deletions app/templates/element/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
$(function() {
// Focus any designated form element
$('.focusFirst').focus();


// USER PANEL
$('#user-panel-user-settings').click(function(e) {
e.stopPropagation();
});

// DESKTOP MENU DRAWER BEHAVIOR
$('#co-menu-collapse').click(function(){
$('#navigation-drawer').toggleClass('closed');
Expand All @@ -42,7 +47,13 @@
});

$('.menu-panel-toggle').click(function() {
$(this).next('.menu-panel').toggleClass('visible');
panel = $(this).next('.menu-panel');
if($(panel).hasClass('visible')) {
$(panel).removeClass('visible');
} else {
$('.menu-panel').removeClass('visible');
$(panel).addClass('visible');
}
});

$('.menu-panel-close').click(function() {
Expand Down
33 changes: 8 additions & 25 deletions app/templates/element/menuMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,50 +39,33 @@
$menuItems = [
[
'permission' => 'people',
'controller' => 'people',
'action' => 'index',
'icon' => 'person',
'dropdown' => 'true',
'label' => __d('menu', 'co.people') //,
//'panel' => 'people' // XXX Uncomment this panel setting to enable panel menus
'label' => __d('menu', 'co.people'),
'panel' => 'people'
],
[
'permission' => 'groups',
'icon' => 'group',
'dropdown' => 'true',
'label' => __d('menu', 'co.structure'),
'panel' => 'structure'
],
[
'permission' => 'configuration',
'controller' => 'dashboards',
'action' => 'configuration',
'icon' => 'cached',
'dropdown' => 'true',
'label' => __d('menu', 'co.lifecycle')
'label' => __d('menu', 'co.connections'),
'panel' => 'connections'
],
[
'permission' => 'configuration',
'controller' => 'dashboards',
'action' => 'configuration',
'icon' => 'hub',
'dropdown' => 'true',
'label' => __d('menu', 'co.connections')
],
[
'permission' => 'configuration',
'controller' => 'dashboards',
'action' => 'configuration',
'icon' => 'play_circle_outline',
'dropdown' => 'true',
'label' => __d('menu', 'co.operations')
'label' => __d('menu', 'co.operations'),
'panel' => 'operations'
],
[
'permission' => 'configuration',
'controller' => 'dashboards',
'action' => 'configuration',
'icon' => 'settings',
'label' => __d('menu', 'co.configuration')
'label' => __d('menu', 'co.configuration'),
'panel' => 'config'
]
];

Expand Down
Loading