mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
DeleteNodeForm: add to process, add title
This commit is contained in:
parent
cb1d43dcb2
commit
8516e8749e
2 changed files with 13 additions and 1 deletions
|
|
@ -196,6 +196,13 @@ class ProcessController extends Controller
|
|||
->setParentNode($node)
|
||||
->setSession($this->session())
|
||||
->handleRequest();
|
||||
} elseif ($action === 'delete') {
|
||||
$form =$this->loadForm('DeleteNode')
|
||||
->setProcess($bp)
|
||||
->setNode($node)
|
||||
->setPath($this->params->getValues('path'))
|
||||
->setSession($this->session())
|
||||
->handleRequest();
|
||||
} elseif ($action === 'simulation') {
|
||||
$form = $this->loadForm('simulation')
|
||||
->setNode($bp->getNode($this->params->get('simulationnode')))
|
||||
|
|
|
|||
|
|
@ -28,11 +28,16 @@ class DeleteNodeForm extends QuickForm
|
|||
|
||||
public function setup()
|
||||
{
|
||||
$this->addHtml(
|
||||
'<h2>' . $this->getView()->escape(
|
||||
sprintf($this->translate('Delete %s'), $this->node->getAlias())
|
||||
) . '</h2>'
|
||||
);
|
||||
$this->addElement('select', 'confirm', array(
|
||||
'label' => $this->translate('Are you sure?'),
|
||||
'required' => true,
|
||||
'description' => $this->translate(
|
||||
'Do you really want to delete this node'
|
||||
'Do you really want to delete this node?'
|
||||
),
|
||||
'multiOptions' => $this->optionalEnum(
|
||||
array(
|
||||
|
|
|
|||
Loading…
Reference in a new issue