diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:47:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:47:21 +0000 |
commit | 1ac4a2050c8076eb96e07e83721ebc9db864db94 (patch) | |
tree | da9b32212bf99154450a7668f61a75f65617a9fa /application/views/scripts/show/actions.phtml | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-toplevelview-upstream/0.3.3.tar.xz icingaweb2-module-toplevelview-upstream/0.3.3.zip |
Adding upstream version 0.3.3.upstream/0.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | application/views/scripts/show/actions.phtml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/application/views/scripts/show/actions.phtml b/application/views/scripts/show/actions.phtml new file mode 100644 index 0000000..c72d5a6 --- /dev/null +++ b/application/views/scripts/show/actions.phtml @@ -0,0 +1,43 @@ +<?php +/** @var \Icinga\Module\Toplevelview\ViewConfig $view */ +?> +<div class="action-links"> + <?php + if (! $this->compact) { + if ($this->hasPermission('toplevelview/edit')) { + echo $this->qlink( + $this->translate('Edit'), + 'toplevelview/edit', + array('name' => $view->getName()), + array( + 'class' => 'action-link', + 'icon' => 'edit', + 'data-base-target' => '_next' + ) + ); + echo $this->qlink( + $this->translate('Clone'), + 'toplevelview/edit/clone', + array('name' => $view->getName()), + array( + 'class' => 'action-link', + 'icon' => 'rewind', + 'data-base-target' => '_next' + ) + ); + } else { + echo $this->qlink( + $this->translate('Source'), + 'toplevelview/show/source', + array('name' => $view->getName()) + ); + } + } + ?> + <?php if ($view->hasBeenLoadedFromSession()): ?> + <div class="warning-note"> + <?= $this->translate('This config is only stored in your session!' + . ' Make sure to save it to disk once your work is complete!') ?> + </div> + <?php endif; ?> +</div> |