diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index bd8b99a2..5f510472 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -46,6 +46,19 @@ class Director_ListController extends ActionController $this->render('table'); } + public function syncruleAction() + { + $this->view->addLink = $this->view->qlink( + $this->translate('Add sync rule'), + 'director/syncrule/add' + ); + + $this->setImportTabs()->activate('syncrule'); + $this->view->title = $this->translate('Sync rule'); + $this->view->table = $this->loadTable('syncrule')->setConnection($this->db()); + $this->render('table'); + } + public function datalistentryAction() { $listId = $this->params->get('list_id'); diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index 3f325094..e317c3a4 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -60,6 +60,9 @@ abstract class ActionController extends Controller )->add('importrun', array( 'label' => $this->translate('Import run'), 'url' => 'director/list/importrun') + )->add('syncrule', array( + 'label' => $this->translate('Sync rule'), + 'url' => 'director/list/syncrule') ); return $this->view->tabs; }