icingaweb2-module-director/application/controllers/ListController.php

43 lines
1.2 KiB
PHP
Raw Normal View History

<?php
2015-10-20 22:34:04 +02:00
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ActionController;
use Exception;
2015-10-20 22:34:04 +02:00
class ListController extends ActionController
{
public function importsourceAction()
{
$this->setAutoRefreshInterval(10);
$this->view->addLink = $this->view->qlink(
$this->translate('Add import source'),
'director/importsource/add',
null,
array('class' => 'icon-plus')
);
$this->setImportTabs()->activate('importsource');
$this->view->title = $this->translate('Import source');
2015-08-28 23:40:40 +02:00
$this->prepareAndRenderTable('importsource');
}
2015-07-23 16:36:58 +02:00
public function syncruleAction()
{
$this->setAutoRefreshInterval(10);
$this->view->addLink = $this->view->qlink(
$this->translate('Add sync rule'),
'director/syncrule/add',
null,
array('class' => 'icon-plus')
);
2015-07-23 16:36:58 +02:00
$this->setImportTabs()->activate('syncrule');
$this->view->title = $this->translate('Sync rule');
$this->view->table = $this->loadTable('syncrule')->setConnection($this->db());
$this->render('table');
}
}