Skip to content

Add jobs to main menu (CFM-252) #82

Merged
merged 1 commit into from
Mar 8, 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
8 changes: 7 additions & 1 deletion app/resources/locales/en_US/menu.po
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ msgstr "Operations"
msgid "co.operations.panel.desc"
msgstr "Operational activities"

msgid "co.operations.jobs.desc"
msgstr "Manage this CO's asynchronous process queue"

msgid "co.operations.reports.desc"
msgstr "Create, view, and export reports"

msgid "co.groups"
msgstr "Groups"

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

msgid "co.people.panel.desc"
msgstr "Model and manage people in COmanage Registry"
msgstr "Model people and manage person lifecycles"

msgid "co.people.population"
msgstr "My Population"
Expand Down
41 changes: 40 additions & 1 deletion app/templates/element/menuPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,46 @@
<h2><?= __d('menu','co.operations.panel.title') ?></h2>
<p><?= __d('menu','co.operations.panel.desc') ?></p>
<div class="menu-panel-content">
<!-- Primary menu-panel-links go here. Copy the structure from the People panel above. -->
<!-- Primary menu-panel-links -->
<ul class="menu-panel-links">
<li>
<?php
$menuUrl = $this->Url->build(
['plugin' => null,
'controller' => 'jobs',
'action' => 'index',
'?' => [
'co_id' => $vv_cur_co->id
]]
);
?>
<a href="<?= $menuUrl ?>" class="menu-panel-primary-link">
<div class="material-icons-outlined">assignment</div>
<div class="menu-panel-primary-link-text">
<h3><?= __d('controller', 'Jobs', [99]) ?></h3>
<div class="menu-panel-link-desc"><?= __d('menu','co.operations.jobs.desc') ?></div>
</div>
</a>
</li><li>
<?php
$menuUrl = $this->Url->build(
['plugin' => null,
'controller' => 'reports',
'action' => 'index',
'?' => [
'co_id' => $vv_cur_co->id
]]
);
?>
<a href="<?= $menuUrl ?>" class="menu-panel-primary-link">
<div class="material-icons-outlined">summarize</div>
<div class="menu-panel-primary-link-text">
<h3><?= __d('controller', 'Reports', [99]) ?></h3>
<div class="menu-panel-link-desc"><?= __d('menu','co.operations.reports.desc') ?></div>
</div>
</a>
</li>
</ul>
<!-- Add the menu-panel-sidepanel here for plugins and other links. Copy the structure from the People panel above. -->
</div>
<?php endif; ?>
Expand Down