summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/jobs/index.phtml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:47:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:47:35 +0000
commit5f112e7d0464d98282443b78870cdccabe42aae9 (patch)
treeaac24e989ceebb84c04de382960608c3fcef7313 /application/views/scripts/jobs/index.phtml
parentInitial commit. (diff)
downloadicingaweb2-module-x509-5f112e7d0464d98282443b78870cdccabe42aae9.tar.xz
icingaweb2-module-x509-5f112e7d0464d98282443b78870cdccabe42aae9.zip
Adding upstream version 1:1.1.2.upstream/1%1.1.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/views/scripts/jobs/index.phtml')
-rw-r--r--application/views/scripts/jobs/index.phtml46
1 files changed, 46 insertions, 0 deletions
diff --git a/application/views/scripts/jobs/index.phtml b/application/views/scripts/jobs/index.phtml
new file mode 100644
index 0000000..e86c3a6
--- /dev/null
+++ b/application/views/scripts/jobs/index.phtml
@@ -0,0 +1,46 @@
+<div class="controls">
+ <?= /** @var \Icinga\Web\Widget\Tabs $tabs */ $tabs ?>
+</div>
+<div class="content">
+ <div class="actions">
+ <?= $this->qlink(
+ $this->translate('Create a New Job') ,
+ 'x509/jobs/new',
+ null,
+ [
+ 'class' => 'button-link',
+ 'data-base-target' => '_next',
+ 'icon' => 'plus',
+ 'title' => $this->translate('Create a New Job')
+ ]
+ ) ?>
+ </div>
+<?php /** @var \Icinga\Repository\RepositoryQuery $jobs */ if (! $jobs->hasResult()): ?>
+ <p><?= $this->escape($this->translate('No jobs configured yet.')) ?></p>
+<?php else: ?>
+ <table class="common-table table-row-selectable" data-base-target="_next">
+ <thead>
+ <tr>
+ <th><?= $this->escape($this->translate('Name')) ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($jobs as $job): ?>
+ <tr>
+ <td><?= $this->qlink($job->name, 'x509/jobs/update', ['name' => $job->name]) ?></td>
+ <td class="icon-col"><?= $this->qlink(
+ null,
+ 'x509/jobs/remove',
+ array('name' => $job->name),
+ array(
+ 'class' => 'action-link',
+ 'icon' => 'cancel',
+ 'title' => $this->translate('Remove this job')
+ )
+ ) ?></td>
+ </tr>
+ <?php endforeach ?>
+ </tbody>
+ </table>
+<?php endif ?>
+</div>