Source
<input type="hidden" id="status_rules_#{row_index}_limit_status" name="status_rules[#{row_index}][limit_status]" value="#{limit_status}">
<?php declare(strict_types = 0);
/*
** Zabbix
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
?>
window.service_edit_popup = new class {
constructor() {
this.status_rule_template = null;
this.child_template = null;
this.serviceid = null;
this.children = new Map();
this.create_url = null;
this.update_url = null;
this.delete_url = null;
this.search_limit = null;
this.overlay = null;
this.dialogue = null;
this.form = null;
this.footer = null;
}
init({tabs_id, serviceid, children, children_problem_tags_html, problem_tags, status_rules, create_url, update_url,
delete_url, search_limit}) {
this.initTemplates();
this.serviceid = serviceid;
this.create_url = create_url;
this.update_url = update_url;
this.delete_url = delete_url;
this.search_limit = search_limit;
this.overlay = overlays_stack.getById('service_edit');
this.dialogue = this.overlay.$dialogue[0];
this.form = this.overlay.$dialogue.$body[0].querySelector('form');
this.footer = this.overlay.$dialogue.$footer[0];
for (const status_rule of status_rules) {
this.addStatusRule(status_rule);
}
for (const service of children) {