You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/classes/UI/ServiceSwapForm.php
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
<?php
2
+
2
3
namespaceIcinga\Editor\UI;
3
4
4
5
/**
@@ -11,7 +12,6 @@
11
12
*/
12
13
class ServiceSwapForm extends \Ease\TWB\Form
13
14
{
14
-
15
15
/**
16
16
* Služba
17
17
* @var IEService
@@ -33,15 +33,18 @@ function finalize()
33
33
{
34
34
$addNewItem = newServiceSelect('new_service_id');
35
35
36
-
$this->addItem(new \Ease\TWB\FormGroup(_('Náhradní služba'), $addNewItem, _('Jméno služby'), sprintf(_('Tato služba se zamění za právě zvolenou službu <strong>%s</strong> u všech hostů kteří ji používají'), $this->service->getName())
$this->form->addItem(new \Ease\TWB\FormGroup(_('MaxWarn'), new \Ease\Html\InputTextTag('MaxWarn', $config['MaxWarn']), '80%', _('Maximum value before a warning is returned.')));
54
+
$this->form->addItem(new \Ease\TWB\FormGroup(_('MaxCrit'), new \Ease\Html\InputTextTag('MaxCrit', $config['MaxCrit']), '95%', _('Maximum value before a critical is returned.')));
55
+
$this->form->addItem(new \Ease\TWB\FormGroup(_('MinWarn'), new \Ease\Html\InputTextTag('MinWarn', $config['MinWarn']), '10%', _('Minimum value before a warning is returned.')));
56
+
$this->form->addItem(new \Ease\TWB\FormGroup(_('MinCrit'), new \Ease\Html\InputTextTag('MinCrit', $config['MinCrit']), '5%', _('Minimum value before a critical is returned.')));
57
+
58
+
$this->form->addItem(new \Ease\TWB\FormGroup(_('warn'), new \Ease\Html\InputTextTag('warn', $config['warn']), '5%', _('Maximum value before a warning is returned.')));
59
+
$this->form->addItem(new \Ease\TWB\FormGroup(_('crit'), new \Ease\Html\InputTextTag('crit', $config['crit']), '5%', _('Maximum value before a critcal is returned.')));
60
+
61
+
62
+
$this->form->addInput(newUI\TWBSwitch('ShowAll', $config['ShowAll']), _('Zobrazit vše'), null, _('Configures display format (if set shows all items not only failures, if set to long shows all cores).'));
0 commit comments