from owrx.controllers.admin import AuthorizationMixin from owrx.controllers.template import WebpageController from owrx.config import Config from urllib.parse import quote import json class SdrSettingsController(AuthorizationMixin, WebpageController): def header_variables(self): variables = super().header_variables() variables["assets_prefix"] = "../" return variables def template_variables(self): variables = super().template_variables() variables["sections"] = self.render_devices() variables["title"] = "SDR device settings" return variables def render_devices(self): return """