summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts')
-rw-r--r--application/views/scripts/integrations/index.phtml56
-rw-r--r--application/views/scripts/integrations/new.phtml6
-rw-r--r--application/views/scripts/integrations/remove.phtml6
-rw-r--r--application/views/scripts/integrations/update.phtml6
4 files changed, 74 insertions, 0 deletions
diff --git a/application/views/scripts/integrations/index.phtml b/application/views/scripts/integrations/index.phtml
new file mode 100644
index 0000000..0f657ce
--- /dev/null
+++ b/application/views/scripts/integrations/index.phtml
@@ -0,0 +1,56 @@
+<div class="controls">
+ <?= $tabs ?>
+ <?= $this->qlink(
+ $this->translate('Integrate New Ticket System') ,
+ 'generictts/integrations/new',
+ null,
+ array(
+ 'class' => 'action-link',
+ 'data-base-target' => '_next',
+ 'icon' => 'plus',
+ 'title' => $this->translate('Integrate a new trouble ticket system')
+ )
+ ) ?>
+</div>
+<div class="content">
+<?php /** @var \Icinga\Application\Config $integrations */ if ($integrations->isEmpty()): ?>
+ <p><?= $this->translate('No ticket system has been integrated yet.') ?></p>
+<?php return; endif ?>
+ <table class="tts-integrations-table common-table table-row-selectable" data-base-target="_next">
+ <thead>
+ <tr>
+ <th><?= $this->translate('Name') ?></th>
+ <th><?= $this->translate('Pattern') ?></th>
+ <th><?= $this->translate('URL') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($integrations as $name => $integration): /** @var object $role */ ?>
+ <tr>
+ <td>
+ <?= $this->qlink(
+ $name,
+ 'generictts/integrations/update',
+ array('integration' => $name),
+ array('title' => sprintf($this->translate('Update integration %s'), $name))
+ ) ?>
+ </td>
+ <td><?= $this->escape($integration->pattern) ?></td>
+ <td><?= $this->escape($integration->url) ?></td>
+ <td class="icon-col text-right">
+ <?= $this->qlink(
+ '',
+ 'generictts/integrations/remove',
+ array('integration' => $name),
+ array(
+ 'class' => 'action-link',
+ 'icon' => 'cancel',
+ 'title' => sprintf($this->translate('Remove integration %s'), $name)
+ )
+ ) ?>
+ </td>
+ </tr>
+ <?php endforeach ?>
+ </tbody>
+ </table>
+</div>
diff --git a/application/views/scripts/integrations/new.phtml b/application/views/scripts/integrations/new.phtml
new file mode 100644
index 0000000..13a8ed9
--- /dev/null
+++ b/application/views/scripts/integrations/new.phtml
@@ -0,0 +1,6 @@
+<div class="controls">
+ <?= $tabs ?>
+</div>
+<div class="content">
+ <?= $form ?>
+</div>
diff --git a/application/views/scripts/integrations/remove.phtml b/application/views/scripts/integrations/remove.phtml
new file mode 100644
index 0000000..13a8ed9
--- /dev/null
+++ b/application/views/scripts/integrations/remove.phtml
@@ -0,0 +1,6 @@
+<div class="controls">
+ <?= $tabs ?>
+</div>
+<div class="content">
+ <?= $form ?>
+</div>
diff --git a/application/views/scripts/integrations/update.phtml b/application/views/scripts/integrations/update.phtml
new file mode 100644
index 0000000..13a8ed9
--- /dev/null
+++ b/application/views/scripts/integrations/update.phtml
@@ -0,0 +1,6 @@
+<div class="controls">
+ <?= $tabs ?>
+</div>
+<div class="content">
+ <?= $form ?>
+</div>