diff --git a/application/controllers/ProcessController.php b/application/controllers/ProcessController.php index 3a13e96..7f26a6e 100644 --- a/application/controllers/ProcessController.php +++ b/application/controllers/ProcessController.php @@ -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'))) diff --git a/application/forms/DeleteNodeForm.php b/application/forms/DeleteNodeForm.php index 335ac4a..2cb9c08 100644 --- a/application/forms/DeleteNodeForm.php +++ b/application/forms/DeleteNodeForm.php @@ -28,11 +28,16 @@ class DeleteNodeForm extends QuickForm public function setup() { + $this->addHtml( + '

' . $this->getView()->escape( + sprintf($this->translate('Delete %s'), $this->node->getAlias()) + ) . '

' + ); $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(