Introduce `MigrationForm` class

This commit is contained in:
Yonas Habteab 2023-07-24 13:14:00 +02:00 committed by Johannes Meyer
parent 81c9e5cfc5
commit 2daa1447b7
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
/* Icinga Web 2 | (c) 2023 Icinga GmbH | GPLv2+ */
namespace Icinga\Forms;
use ipl\Html\Form;
use ipl\Web\Common\CsrfCounterMeasure;
use ipl\Web\Common\FormUid;
class MigrationForm extends Form
{
use CsrfCounterMeasure;
use FormUid;
protected $defaultAttributes = [
'class' => ['icinga-form', 'migration-form', 'icinga-controls'],
'name' => 'migration-form'
];
protected function assemble(): void
{
$this->addHtml($this->createUidElement());
}
}