Apply icinga form style to remaining form classes

This commit is contained in:
Johannes Meyer 2019-07-19 15:34:09 +02:00
parent eaeda473e5
commit f841c3d42f
5 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class GroupController extends AuthBackendController
}
$this->view->backendSelection = new Form();
$this->view->backendSelection->setAttrib('class', 'backend-selection');
$this->view->backendSelection->setAttrib('class', 'backend-selection icinga-controls');
$this->view->backendSelection->setUidDisabled();
$this->view->backendSelection->setMethod('GET');
$this->view->backendSelection->setTokenDisabled();

View File

@ -92,6 +92,7 @@ class AnnouncementForm extends RepositoryForm
{
$this->setTitle(sprintf($this->translate('Remove announcement %s?'), $this->getIdentifier()));
$this->setSubmitLabel($this->translate('Yes'));
$this->setAttrib('class', 'icinga-controls');
}
/**

View File

@ -114,6 +114,7 @@ class UserForm extends RepositoryForm
{
$this->setTitle(sprintf($this->translate('Remove user %s?'), $this->getIdentifier()));
$this->setSubmitLabel($this->translate('Yes'));
$this->setAttrib('class', 'icinga-controls');
}
/**

View File

@ -64,6 +64,7 @@ class UserGroupForm extends RepositoryForm
. ' have their membership cleared automatically.'
));
$this->setSubmitLabel($this->translate('Yes'));
$this->setAttrib('class', 'icinga-forms icinga-controls');
}
/**

View File

@ -10,6 +10,8 @@ use Icinga\Web\Form;
*/
class ConfirmRemovalForm extends Form
{
const DEFAULT_CLASSES = 'icinga-controls';
/**
* {@inheritdoc}
*/