Commit c780aab7 authored by Štěpán Henek's avatar Štěpán Henek 🌩

wifi: added enable_guest option to wifi form

parent 0ccfb916
......@@ -38,7 +38,8 @@ class WifiHandler(BaseConfigHandler):
class WifiEditForm(fapi.ForisAjaxForm):
template_name = "config/_wifi_edit.html.j2"
def __init__(self, data, controller_id=None):
def __init__(self, data, controller_id=None, enable_guest=True):
self.enable_guest = enable_guest
super().__init__(data, controller_id)
self.title = _("Configure WiFi for '%s'") % controller_id
......@@ -237,7 +238,7 @@ class WifiEditForm(fapi.ForisAjaxForm):
).requires(prefixed("device_enabled"), True)
if == "config":
if == "config" and self.enable_guest:
# Guest wi-fi part
guest_section = wifi_main.add_section(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment