host/services: add dedicated view script

This commit is contained in:
Thomas Gelf 2016-03-18 13:00:14 +01:00
parent 8290628f82
commit ea80161a27
2 changed files with 18 additions and 1 deletions

View File

@ -48,7 +48,6 @@ class HostController extends ObjectController
->setHost($host)
->enforceFilter('host_id', $host->id)
->setConnection($this->db());
$this->render('objects/table', null, true);
}
public function agentAction()

View File

@ -0,0 +1,18 @@
<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1>
<span>
<?= $this->addLink ?>
</span>
<?php if (count($table) || ($this->filterEditor && ! $this->filterEditor->getFilter()->isEmpty())): ?>
<?= $this->filterEditor ?>
<?php endif ?>
<?= $this->table->getPaginator() ?>
</div>
<div class="content">
<?= $this->form ?>
<?php if (count($table)): ?>
<?= $this->table->render() ?>
<?php endif ?>
</div>