Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/views/configuration.correlation.edit.php')
-rw-r--r--ui/app/views/configuration.correlation.edit.php35
1 files changed, 19 insertions, 16 deletions
diff --git a/ui/app/views/configuration.correlation.edit.php b/ui/app/views/configuration.correlation.edit.php
index 60b75563b31..0fdc1c7add4 100644
--- a/ui/app/views/configuration.correlation.edit.php
+++ b/ui/app/views/configuration.correlation.edit.php
@@ -141,22 +141,25 @@ $form_list
->setWidth(ZBX_TEXTAREA_STANDARD_WIDTH)
->setMaxlength(DB::getFieldLength('hosts', 'description'))
)
- ->addRow(
- _('Operations'),
- (new CList())
- ->addItem(
- (new CCheckBox('op_close_old'))
- ->setChecked($data['op_close_old'])
- ->setId('operation_0_type')
- ->setLabel(_('Close old events'))
- )
- ->addItem(
- (new CCheckBox('op_close_new'))
- ->setChecked($data['op_close_new'])
- ->setId('operation_1_type')
- ->setLabel(_('Close new event'))
- )
- ->addClass(ZBX_STYLE_CHECKBOX_LIST)
+ ->addRow(_('Operations'),
+ (new CCheckBoxList())
+ ->setVertical(true)
+ ->setOptions([
+ [
+ 'label' => _('Close old events'),
+ 'checked' => $data['op_close_old'],
+ 'name' => 'op_close_old',
+ 'id' => 'operation_0_type',
+ 'value' => '1'
+ ],
+ [
+ 'label' => _('Close new event'),
+ 'checked' => $data['op_close_new'],
+ 'name' => 'op_close_new',
+ 'id' => 'operation_1_type',
+ 'value' => '1'
+ ]
+ ])
)
->addRow('', (new CDiv((new CLabel(_('At least one operation must be selected.')))->setAsteriskMark())))
->addRow(_('Enabled'),