mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-20 20:34:26 +02:00
ObjectController: re-order tabs, fields to the right
This commit is contained in:
parent
fb6518a887
commit
c65d042ed4
@ -30,6 +30,16 @@ abstract class ObjectController extends ActionController
|
||||
'label' => $this->translate(ucfirst($type))
|
||||
));
|
||||
|
||||
$tabs->add('render', array(
|
||||
'url' => sprintf('director/%s/render', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('Preview'),
|
||||
))->add('history', array(
|
||||
'url' => sprintf('director/%s/history', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('History')
|
||||
));
|
||||
|
||||
if ($object->hasBeenLoadedFromDb()
|
||||
&& $object->supportsFields()
|
||||
&& ($object->isTemplate() || $type === 'command')
|
||||
@ -40,16 +50,6 @@ abstract class ObjectController extends ActionController
|
||||
'label' => $this->translate('Fields')
|
||||
));
|
||||
}
|
||||
|
||||
$tabs->add('render', array(
|
||||
'url' => sprintf('director/%s/render', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('Preview'),
|
||||
))->add('history', array(
|
||||
'url' => sprintf('director/%s/history', $type),
|
||||
'urlParams' => $params,
|
||||
'label' => $this->translate('History')
|
||||
));
|
||||
} else {
|
||||
$this->getTabs()->add('add', array(
|
||||
'url' => sprintf('director/%s/add', $type),
|
||||
|
Loading…
x
Reference in New Issue
Block a user