mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
luci-app-accesscontrol: code alignment
This commit is contained in:
parent
17bf14c6ae
commit
936988688b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user