Skip to content

Commit

Permalink
Add jobs to main menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Mar 8, 2023
1 parent 4f13870 commit 927ab3e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
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

0 comments on commit 927ab3e

Please sign in to comment.