mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 11:19:14 +02:00
Which object should be removed needs not to be a part of a form but is accessible from the url's query string which should be in the action of the form. refs #5525
36 lines
616 B
PHP
36 lines
616 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Form\Config;
|
|
|
|
use Icinga\Web\Form;
|
|
|
|
/**
|
|
* Form for confirming removal of an object
|
|
*/
|
|
class ConfirmRemovalForm extends Form
|
|
{
|
|
/**
|
|
* Initalize this form
|
|
*/
|
|
public function init()
|
|
{
|
|
$this->setName('form_confirm_removal');
|
|
}
|
|
|
|
/**
|
|
* @see Form::addSubmitButton()
|
|
*/
|
|
public function addSubmitButton()
|
|
{
|
|
$this->addElement(
|
|
'submit',
|
|
'btn_submit',
|
|
array(
|
|
'label' => t('Confirm Removal')
|
|
)
|
|
);
|
|
}
|
|
}
|