Skip to content

Add Provisioning Targets and Servers to the main menu (CFM-224) #106

Merged
merged 1 commit into from
Jun 28, 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
3 changes: 3 additions & 0 deletions app/resources/locales/en_US/menu.po
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ msgstr "Connections"
msgid "co.connections.panel.desc"
msgstr "Connections to external services: upstream inputs and downstream outputs"

msgid "co.connections.provisioning_targets.desc"
msgstr "Create access to applications and services"

msgid "co.operations"
msgstr "Operations"

Expand Down
47 changes: 44 additions & 3 deletions app/templates/element/menuPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,50 @@
<?php if($panel == 'connections'): ?>
<h2><?= __d('menu','co.connections.panel.title') ?></h2>
<p><?= __d('menu','co.connections.panel.desc') ?></p>
<div class="menu-panel-content">
<!-- Primary menu-panel-links go here. Copy the structure from the People panel above. -->
<!-- Add the menu-panel-sidepanel here for plugins and other links. Copy the structure from the People panel above. -->
<div class="menu-panel-content d-flex-md">
<!-- Primary menu-panel-links -->
<ul class="menu-panel-links">
<li>
<?php
$menuUrl = $this->Url->build(
['plugin' => null,
'controller' => 'provisioning_targets',
'?' => [
'co_id' => $vv_cur_co->id
]]
);
?>
<a href="<?= $menuUrl ?>" class="menu-panel-primary-link">
<div class="material-icons-outlined" aria-hidden="true">cloud_upload</div>
<div class="menu-panel-primary-link-text">
<h3><?= __d('controller','ProvisioningTargets', [2]) ?></h3>
<div class="menu-panel-link-desc"><?= __d('menu','co.connections.provisioning_targets.desc') ?></div>
</div>
</a>
</li>
</ul>
<!-- menu-panel-sidepanel for plugins and other links -->
<div class="menu-panel-sidepanel">
<div class="menu-panel-sidepanel-content">
<ul class="menu-panel-links menu-panel-links-inner">
<li>
<?php
$menuUrl = $this->Url->build(
['plugin' => null,
'controller' => 'servers',
'action' => 'index',
'?' => [
'co_id' => $vv_cur_co->id
]]
);
?>
<a href="<?= $menuUrl ?>" class="nospin">
<em class="material-icons" aria-hidden="true">computer</em>
<?= __d('controller','Servers', [2]) ?>
</a>
</li>
</ul>
</div>
</div>
<?php endif; ?>
<?php if($panel == 'operations'): ?>
Expand Down