From 8c2d5ec7f9efc43c832bc5afd68938fcef715ef1 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 17 Oct 2016 17:24:27 +0000 Subject: [PATCH] Data: flip field/list order, as fields are... ...more important --- application/views/scripts/index/index.phtml | 2 +- library/Director/Web/Controller/ActionController.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/views/scripts/index/index.phtml b/application/views/scripts/index/index.phtml index ea249566..6113bf6f 100644 --- a/application/views/scripts/index/index.phtml +++ b/application/views/scripts/index/index.phtml @@ -109,8 +109,8 @@ $all = array( array('database', $this->translate('Import data sources'), 'director/list/importsource', $this->translate('Define and manage imports from various data sources'), $this->importState), array('flapping', $this->translate('Synchronize'), 'director/list/syncrule', $this->translate('Define how imported data should be synchronized with Icinga'), $this->syncState), array('clock', $this->translate('Jobs'), 'director/jobs', $this->translate('Schedule and automate Import, Syncronization, Config Deployment, Housekeeping and more'), $this->jobState), - array('sort-name-up', $this->translate('Provide data lists'), 'director/data/lists', $this->translate('Provide data lists to make life easier for your users')), array('edit', $this->translate('Define data fields'), 'director/data/fields', $this->translate('Data fields make sure that configuration fits your rules')), + array('sort-name-up', $this->translate('Provide data lists'), 'director/data/lists', $this->translate('Provide data lists to make life easier for your users')), ) ); ?> diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index d1de32c6..b83f7428 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -128,17 +128,17 @@ abstract class ActionController extends Controller protected function setDataTabs() { $this->view->tabs = Widget::create('tabs')->add( - 'datalist', - array( - 'label' => $this->translate('Data lists'), - 'url' => 'director/data/lists' - ) - )->add( 'datafield', array( 'label' => $this->translate('Data fields'), 'url' => 'director/data/fields' ) + )->add( + 'datalist', + array( + 'label' => $this->translate('Data lists'), + 'url' => 'director/data/lists' + ) ); return $this->view->tabs; }