-- -- (C) 2017-20 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local dhcp_utils = require("dhcp_utils") local ui_utils = require("ui_utils") local template = require("template_utils") -- Administrator check if not isAdministrator() then return end if _POST["dhcp_ranges"] and _POST["old_dhcp_ranges"] then dhcp_utils.editRanges(ifid, _POST["old_dhcp_ranges"], _POST["dhcp_ranges"]) end print( template.gen("modal_confirm_dialog.html", { dialog={ id = "delete_dhcp_range_dialog", action = "deleteDhcpRange()", title = i18n("dhcp.delete_range"), message = i18n("dhcp.delete_range_confirm", {range=""}), confirm = i18n("delete"), } }) ) print[[