mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-21 09:26:30 -04:00
Besides that this is a destructive operation which shouldn't get automatic focus… our native way to adhere to WCAG standards is by focusing the newly rendered container which suffices.
25 lines
526 B
PHP
25 lines
526 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
namespace Icinga\Forms;
|
|
|
|
use Icinga\Web\Form;
|
|
|
|
/**
|
|
* Form for confirming removal of an object
|
|
*/
|
|
class ConfirmRemovalForm extends Form
|
|
{
|
|
const DEFAULT_CLASSES = 'icinga-controls';
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function init()
|
|
{
|
|
$this->setName('form_confirm_removal');
|
|
$this->getSubmitLabel() ?: $this->setSubmitLabel($this->translate('Confirm Removal'));
|
|
}
|
|
}
|