mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Fix control order in the dashlet form
This commit is contained in:
parent
7a6d61ceaa
commit
92d8ad42e6
@ -89,13 +89,23 @@ class DashletForm extends Form
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$this->addElement(
|
||||||
|
'checkbox',
|
||||||
|
'create_new_pane',
|
||||||
|
array(
|
||||||
|
'autosubmit' => true,
|
||||||
|
'required' => false,
|
||||||
|
'label' => $this->translate('New dashboard'),
|
||||||
|
'description' => $this->translate('Check this box if you want to add the dashlet to a new dashboard')
|
||||||
|
)
|
||||||
|
);
|
||||||
if (empty($panes) || ((isset($formData['create_new_pane']) && $formData['create_new_pane'] != false))) {
|
if (empty($panes) || ((isset($formData['create_new_pane']) && $formData['create_new_pane'] != false))) {
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'pane',
|
'pane',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => $this->translate("New Dashboard Title"),
|
'label' => $this->translate('New Dashboard Title'),
|
||||||
'description' => $this->translate('Enter a title for the new dashboard')
|
'description' => $this->translate('Enter a title for the new dashboard')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -111,17 +121,6 @@ class DashletForm extends Form
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addElement(
|
|
||||||
'checkbox',
|
|
||||||
'create_new_pane',
|
|
||||||
array(
|
|
||||||
'autosubmit' => true,
|
|
||||||
'required' => false,
|
|
||||||
'label' => $this->translate('New dashboard'),
|
|
||||||
'description' => $this->translate('Check this box if you want to add the dashlet to a new dashboard')
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user