Source
const authentication_none = document.getElementById('authentication').value == <?= ZBX_HTTP_AUTH_NONE ?>;
<?php
/*
** 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 Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* @var CView $this
*/
?>
<script>
const view = new class {
/** @type {HTMLFormElement} */
#form;
/** @type {boolean} */
#is_templated = false;
/** @type {string} */
#context;
/** @type {Object} */
#templates = {};
/** @type {Object} */
#events = {};
/** @type {HTMLTableElement} */
#variables;
/** @type {HTMLTableElement} */
#headers;
/** @type {boolean} */
#variables_headers_initialized = false;
/** @type {HTMLTableElement} */
#steps;
constructor() {
this.#registerEvents();
}
init({is_templated, variables, headers, steps, context}) {
this.#form = document.getElementById('webscenario-form');
this.#is_templated = is_templated;
this.#context = context;
this.#variables = document.getElementById('variables');
this.#headers = document.getElementById('headers');
this.#steps = document.getElementById('steps');