mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-09 22:13:05 -05:00
Fix a few style issues
This commit is contained in:
parent
df7e72398d
commit
7a8c48c7e8
5 changed files with 12 additions and 11 deletions
|
|
@ -189,7 +189,7 @@ class AddNodeForm extends QuickForm
|
|||
|
||||
protected function selectHost()
|
||||
{
|
||||
$this->addElement('multiselect','children', [
|
||||
$this->addElement('multiselect', 'children', [
|
||||
'label' => $this->translate('Hosts'),
|
||||
'required' => true,
|
||||
'size' => 8,
|
||||
|
|
@ -225,7 +225,7 @@ class AddNodeForm extends QuickForm
|
|||
|
||||
protected function addServicesElement($host)
|
||||
{
|
||||
$this->addElement('multiselect','children', [
|
||||
$this->addElement('multiselect', 'children', [
|
||||
'label' => $this->translate('Services'),
|
||||
'required' => true,
|
||||
'size' => 8,
|
||||
|
|
@ -260,7 +260,7 @@ class AddNodeForm extends QuickForm
|
|||
}
|
||||
|
||||
if (($file = $this->getSentValue('file')) || !$this->hasParentNode()) {
|
||||
$this->addElement('multiselect','children', [
|
||||
$this->addElement('multiselect', 'children', [
|
||||
'label' => $this->translate('Process nodes'),
|
||||
'required' => true,
|
||||
'size' => 8,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class MoveNodeForm extends QuickForm
|
|||
'filters' => ['Null'],
|
||||
'validators' => [
|
||||
['Callback', true, [
|
||||
'callback' => function($name) {
|
||||
'callback' => function ($name) {
|
||||
return empty($name) || $this->bp->hasBpNode($name);
|
||||
},
|
||||
'messages' => [
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@ $this->provideJsFile('vendor/Sortable.js');
|
|||
$this->provideJsFile('behavior/sortable.js');
|
||||
$this->provideJsFile('vendor/jquery.fn.sortable.js');
|
||||
|
||||
$this->provideCssFile('state-ball.less');
|
||||
$this->provideCssFile('state-ball.less');
|
||||
|
|
|
|||
|
|
@ -31,11 +31,10 @@ class ImportedNode extends BpNode
|
|||
$this->nodeName = $object->node;
|
||||
|
||||
parent::__construct((object) [
|
||||
'name' => '@' . $this->configName . ':' . $this->nodeName,
|
||||
'operator' => null,
|
||||
'child_names' => null
|
||||
]
|
||||
);
|
||||
'name' => '@' . $this->configName . ':' . $this->nodeName,
|
||||
'operator' => null,
|
||||
'child_names' => null
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -175,7 +175,9 @@ class TreeRenderer extends Renderer
|
|||
|
||||
$ul = Html::tag('ul', [
|
||||
'class' => ['bp', 'sortable'],
|
||||
'data-sortable-disabled' => $this->isLocked() || $node->getBpConfig()->getName() !== $this->getBusinessProcess()->getName() ? 'true' : 'false',
|
||||
'data-sortable-disabled' => (
|
||||
$this->isLocked() || $node->getBpConfig()->getName() !== $this->getBusinessProcess()->getName()
|
||||
) ? 'true' : 'false',
|
||||
'data-sortable-invert-swap' => 'true',
|
||||
'data-sortable-data-id-attr' => 'id',
|
||||
'data-sortable-draggable' => '.movable',
|
||||
|
|
|
|||
Loading…
Reference in a new issue