display default alias in index page
This commit is contained in:
parent
b68c6b3990
commit
ac1cde4ad1
@ -49,14 +49,20 @@ s.extedit = d.build_url("admin", "modem", "qmodem", "slot_config", "%s")
|
|||||||
s.sectionhead = translate("Config Name")
|
s.sectionhead = translate("Config Name")
|
||||||
slot_type = s:option(DummyValue, "type", translate("Slot Type"))
|
slot_type = s:option(DummyValue, "type", translate("Slot Type"))
|
||||||
slot_type.cfgvalue = function(t, n)
|
slot_type.cfgvalue = function(t, n)
|
||||||
local name = translate(Value.cfgvalue(t, n) or "")
|
local name = translate(Value.cfgvalue(t, n) or "-")
|
||||||
return name:upper()
|
return name:upper()
|
||||||
end
|
end
|
||||||
|
|
||||||
slot_path = s:option(DummyValue, "slot", translate("Slot Path"))
|
slot_path = s:option(DummyValue, "slot", translate("Slot Path"))
|
||||||
slot_path.cfgvalue = function(t, n)
|
slot_path.cfgvalue = function(t, n)
|
||||||
local path = (Value.cfgvalue(t, n) or "")
|
local path = (Value.cfgvalue(t, n) or "-")
|
||||||
return path
|
return path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
default_alias = s:option(DummyValue, "alias", translate("Default Alias"))
|
||||||
|
default_alias.cfgvalue = function(t, n)
|
||||||
|
local alias = (Value.cfgvalue(t, n) or "-")
|
||||||
|
return alias
|
||||||
|
end
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
Loading…
x
Reference in New Issue
Block a user