diff options
Diffstat (limited to 'ui/include/views/configuration.template.edit.php')
-rw-r--r-- | ui/include/views/configuration.template.edit.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/include/views/configuration.template.edit.php b/ui/include/views/configuration.template.edit.php index dc5239869c7..0a86265f25e 100644 --- a/ui/include/views/configuration.template.edit.php +++ b/ui/include/views/configuration.template.edit.php @@ -25,12 +25,12 @@ require_once __DIR__.'/js/common.template.edit.js.php'; -$widget = (new CWidget()) +$html_page = (new CHtmlPage()) ->setTitle(_('Templates')) ->setDocUrl(CDocHelper::getUrl(CDocHelper::DATA_COLLECTION_TEMPLATES_EDIT)); if ($data['form'] !== 'clone' && $data['form'] !== 'full_clone') { - $widget->setNavigation(getHostNavigation('', $data['templateid'])); + $html_page->setNavigation(getHostNavigation('', $data['templateid'])); } $tabs = new CTabView(); @@ -42,7 +42,7 @@ if (!hasRequest('form_refresh')) { $form = (new CForm()) ->setId('templates-form') ->setName('templatesForm') - ->setAttribute('aria-labelledby', ZBX_STYLE_PAGE_TITLE) + ->setAttribute('aria-labelledby', CHtmlPage::PAGE_TITLE_ID) ->addVar('form', $data['form']); if ($data['templateid'] != 0) { @@ -236,6 +236,7 @@ else { } $form->addItem($tabs); -$widget->addItem($form); -$widget->show(); +$html_page + ->addItem($form) + ->show(); |