luci-app-accesscontrol: code alignment

This commit is contained in:
Beginner-Go 2022-06-01 14:47:32 +00:00
parent 17bf14c6ae
commit 936988688b
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
module("luci.controller.mia",package.seeall)
module("luci.controller.mia", package.seeall)
function index()
if not nixio.fs.access("/etc/config/mia") then

View File

@ -2,7 +2,7 @@ a = Map("mia")
a.title = translate("Internet Access Schedule Control")
a.description = translate("Access Schedule Control Settins")
a:section(SimpleSection).template = "mia/mia_status"
a:section(SimpleSection).template = "mia/mia_status"
t = a:section(TypedSection, "basic")
t.anonymous = true
@ -34,7 +34,7 @@ e.optional = false
e.default = "00:00"
e = t:option(Value, "timeoff", translate("End time"))
e.optional=false
e.optional = false
e.default = "23:59"
e = t:option(Flag, "z1", translate("Mon"))
@ -43,7 +43,7 @@ e.default = 1
e = t:option(Flag, "z2", translate("Tue"))
e.rmempty = true
e.default=1
e.default = 1
e = t:option(Flag, "z3", translate("Wed"))
e.rmempty = true

View File

@ -5,6 +5,7 @@ uci -q batch <<-EOF >/dev/null
add ucitrack mia
set ucitrack.@mia[-1].init=mia
commit ucitrack
delete firewall.mia
set firewall.mia=include
set firewall.mia.type=script